mirror of
https://github.com/kaboomserver/extras.git
synced 2024-11-27 01:45:44 -05:00
Update ServerCommand.java
This commit is contained in:
parent
8fe96bcc2b
commit
994b6eff6f
1 changed files with 5 additions and 0 deletions
|
@ -76,6 +76,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" -> {
|
||||
|
|
Loading…
Reference in a new issue