mirror of
https://github.com/kaboomserver/extras.git
synced 2024-11-30 03:15:41 -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();
|
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 {
|
try {
|
||||||
switch (commandName) {
|
switch (commandName) {
|
||||||
case "/minecraft:execute", "/execute" -> {
|
case "/minecraft:execute", "/execute" -> {
|
||||||
|
|
Loading…
Reference in a new issue