This commit is contained in:
GEOEGII555 2025-03-09 13:46:07 +02:00 committed by GitHub
commit 567c4b85bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -75,6 +75,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" -> {