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
|
||||
*/
|
||||
protected void addAll(List<TNTPoint> records, Function<Player, PlayerTraceShowData> getter) {
|
||||
this.records.addAll(records);
|
||||
this.getRecords().addAll(records);
|
||||
Iterator<Player> keySetIterator = entityServerMap.keySet().iterator();
|
||||
while (keySetIterator.hasNext()) {
|
||||
Player player = keySetIterator.next();
|
||||
@ -104,7 +104,7 @@ public class Trace { // TODO: Add UUID for file saving and so on!
|
||||
keySetIterator.remove();
|
||||
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 = "clear")
|
||||
public void delete(@Validator Player player) {
|
||||
manager.clear();
|
||||
BauSystem.MESSAGE.send("TRACE_MESSAGE_DELETE", player);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren