From 488866cee6b0031982d869ace1a30c11a24710d0 Mon Sep 17 00:00:00 2001 From: D4rkr34lm Date: Tue, 2 Apr 2024 23:52:18 +0200 Subject: [PATCH] Added comand for trace at --- .../bausystem/features/tracer/TraceCommand.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceCommand.java index c294f473..dbc6d35b 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceCommand.java @@ -91,10 +91,18 @@ public class TraceCommand extends SWCommand { } @Register(value = "isolate", description = "TRACE_COMMAND_HELP_SHOW") - public void isolate(Player player, Trace trace, @ErrorMessage("test") TNTRecord... records){ + public void isolate(Player player, Trace trace, @ErrorMessage("TRACE_RECORD_ID_INVALID") TNTRecord... records){ trace.isolate(player, records); } - //TODO warning if nothing is shown + + @Register(value="at", description = "TRACE_COMMAND_HELP_SHOW") + public void at(Player player, int start, int end){ + for(Trace trace: manager.getAll()){ + trace.renderAt(player, start, end); + } + } + + @ClassMapper(value = Trace.class, local = true) public TypeMapper traceClassMapper(){