TNTTracer #70
@ -189,6 +189,7 @@ public class CommandTrace implements CommandExecutor {
|
|||||||
try {
|
try {
|
||||||
int tntID = Integer.parseInt(args[1]);
|
int tntID = Integer.parseInt(args[1]);
|
||||||
ShowManager.removeTrace(tntID);
|
ShowManager.removeTrace(tntID);
|
||||||
|
TNTTracer15.remove(tntID);
|
||||||
player.sendMessage(BauSystem.PREFIX + "§cTNT-Positionen mit ID " + tntID + " gelöscht");
|
player.sendMessage(BauSystem.PREFIX + "§cTNT-Positionen mit ID " + tntID + " gelöscht");
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
help15(player);
|
help15(player);
|
||||||
|
@ -284,6 +284,13 @@ public class TNTTracer15 {
|
|||||||
ShowManager.removeAllTraces();
|
ShowManager.removeAllTraces();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void remove(int tntID) {
|
||||||
|
Iterator<TNTFrame> frameIterator = tntFrames.iterator();
|
||||||
|
while (frameIterator.hasNext()) {
|
||||||
|
frameIterator.next().remove(tntID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void hideBlockTraces(Player p) {
|
public static void hideBlockTraces(Player p) {
|
||||||
TNTTracer_15.hide(p);
|
TNTTracer_15.hide(p);
|
||||||
}
|
}
|
||||||
|
@ -59,6 +59,10 @@ public class TNTFrame {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void remove(int tntID) {
|
||||||
|
positions.remove(tntID);
|
||||||
|
}
|
||||||
|
|
||||||
public LinkedList<TNTTrace> getTraces(LinkedList<Integer> selection) {
|
public LinkedList<TNTTrace> getTraces(LinkedList<Integer> selection) {
|
||||||
LinkedList<TNTTrace> traces = new LinkedList<>();
|
LinkedList<TNTTrace> traces = new LinkedList<>();
|
||||||
Iterator<Integer> iterator = selection.iterator();
|
Iterator<Integer> iterator = selection.iterator();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren