mirror of
https://github.com/kaboomserver/extras.git
synced 2025-02-11 11:40:19 +00:00
Block summon subcommand in execute
This commit is contained in:
parent
9cf76a8ee6
commit
4bbec866ff
1 changed files with 3 additions and 0 deletions
|
@ -106,6 +106,9 @@ public final class ServerCommand implements Listener {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 1; i < arr.length; i++) {
|
for (int i = 1; i < arr.length; i++) {
|
||||||
|
if ("summon".equalsIgnoreCase(arr[i])) {
|
||||||
|
return "cancel";
|
||||||
|
}
|
||||||
if (!"run".equalsIgnoreCase(arr[i])) {
|
if (!"run".equalsIgnoreCase(arr[i])) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue