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.
This commit is contained in:
business-fox 2022-10-11 20:24:00 +01:00 committed by GitHub
parent 08f75cb374
commit 30f7768a4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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