diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tntlistener/TLSCommand.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tntlistener/TLSCommand.java index 355803dc..fbf2cf62 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tntlistener/TLSCommand.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tntlistener/TLSCommand.java @@ -43,4 +43,13 @@ public class TLSCommand extends SWCommand { public void stop(@Validator Player player) { listener.stopListening(player); } + + @Register(description = "TLS_TOGGLE_HELP") + public void toggle(@Validator Player player) { + if (listener.isActiveFor(player)) { + listener.stopListening(player); + } else { + listener.startListening(player); + } + } }