Trace Refactor #233
@ -95,7 +95,7 @@ public class Trace { // TODO: Add UUID for file saving and so on!
|
|||||||
* Adds the given records and updates potential trace renderings
|
* Adds the given records and updates potential trace renderings
|
||||||
*/
|
*/
|
||||||
protected void addAll(List<TNTPoint> records, Function<Player, PlayerTraceShowData> getter) {
|
protected void addAll(List<TNTPoint> records, Function<Player, PlayerTraceShowData> getter) {
|
||||||
this.records.addAll(records);
|
this.getRecords().addAll(records);
|
||||||
Iterator<Player> keySetIterator = entityServerMap.keySet().iterator();
|
Iterator<Player> keySetIterator = entityServerMap.keySet().iterator();
|
||||||
while (keySetIterator.hasNext()) {
|
while (keySetIterator.hasNext()) {
|
||||||
Player player = keySetIterator.next();
|
Player player = keySetIterator.next();
|
||||||
@ -104,7 +104,7 @@ public class Trace { // TODO: Add UUID for file saving and so on!
|
|||||||
keySetIterator.remove();
|
keySetIterator.remove();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
render(getRecords(), entityServerMap.get(player), playerTraceShowData);
|
render(records, entityServerMap.get(player), playerTraceShowData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,6 +131,7 @@ public class TraceCommand extends SWCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Register(value = "delete", description = "TRACE_COMMAND_HELP_DELETE")
|
@Register(value = "delete", description = "TRACE_COMMAND_HELP_DELETE")
|
||||||
|
@Register(value = "clear")
|
||||||
public void delete(@Validator Player player) {
|
public void delete(@Validator Player player) {
|
||||||
manager.clear();
|
manager.clear();
|
||||||
BauSystem.MESSAGE.send("TRACE_MESSAGE_DELETE", player);
|
BauSystem.MESSAGE.send("TRACE_MESSAGE_DELETE", player);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren