This commit is contained in:
GEOEGII555 2025-07-08 23:58:21 +01:00 committed by GitHub
commit a61b08ead5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,6 +67,11 @@ public final class ServerCommand implements Listener {
commandName = "/" + arr[1].toLowerCase();
}
// Block /clone only in command blocks
if ((sender instanceof BlockCommandSender) || (sender instanceof CommandMinecart)) {
if (commandName == "/clone" || commandName == "/minecraft:clone") return "cancel";
}
try {
switch (commandName) {
case "/minecraft:execute", "/execute" -> {