From 30f7768a4b55f9f899d30ad13a62f48c21da906f Mon Sep 17 00:00:00 2001 From: business-fox Date: Tue, 11 Oct 2022 20:24:00 +0100 Subject: [PATCH] Block /scissors reload (#321) * Block /scissors reload Yeah this is another one of those "spam a random command until it breaks the server" This only applies to servers which actually run scissors, which to my knowledge kaboom and all clones all run Scissors. --- .../pw/kaboom/extras/modules/server/ServerCommand.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/pw/kaboom/extras/modules/server/ServerCommand.java b/src/main/java/pw/kaboom/extras/modules/server/ServerCommand.java index 0a9bc7e..78e9295 100644 --- a/src/main/java/pw/kaboom/extras/modules/server/ServerCommand.java +++ b/src/main/java/pw/kaboom/extras/modules/server/ServerCommand.java @@ -202,6 +202,13 @@ public final class ServerCommand implements Listener { return "cancel"; } break; + case "/scissors:scissors": + case "/scissors": + if(arr.length >= 2 + && "reload".equalsIgnoreCase(arr[1])) { + return "cancel"; + } + break; case "/geyser-spigot:geyser": case "/geyser": if (arr.length >= 2