From 0e5a03e1394ad9f7cb9165f541a48a20613a6bc9 Mon Sep 17 00:00:00 2001 From: PhiRobot Date: Tue, 4 Nov 2025 15:18:29 +0000 Subject: [PATCH] Added tls toggle --- .../bausystem/features/tntlistener/TLSCommand.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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); + } + } }