mirror of
https://github.com/kaboomserver/extras.git
synced 2025-01-07 23:17:55 +00:00
Add latest changes
This commit is contained in:
parent
a695524743
commit
6568b2e87d
2 changed files with 7 additions and 1 deletions
|
@ -141,6 +141,9 @@ public final class EntitySpawn implements Listener {
|
|||
private void limitSlimeSize(final Slime slime) {
|
||||
if (slime.getSize() > 20) {
|
||||
slime.setSize(20);
|
||||
|
||||
} else if (slime.getSize() < -20) {
|
||||
slime.setSize(-20);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -30,10 +30,12 @@ public final class ServerCommand implements Listener {
|
|||
if ("execute".equalsIgnoreCase(arr[i + 1])
|
||||
|| "clone".equalsIgnoreCase(arr[i + 1])
|
||||
|| "fill".equalsIgnoreCase(arr[i + 1])
|
||||
|| "kick".equalsIgnoreCase(arr[i + 1])
|
||||
|| "me".equalsIgnoreCase(arr[i + 1])
|
||||
|| "msg".equalsIgnoreCase(arr[i + 1])
|
||||
|| "particle".equalsIgnoreCase(arr[i + 1])
|
||||
|| "reload".equalsIgnoreCase(arr[i + 1])
|
||||
|| "save-all".equalsIgnoreCase(arr[i + 1])
|
||||
|| "say".equalsIgnoreCase(arr[i + 1])
|
||||
|| "spreadplayers".equalsIgnoreCase(arr[i + 1])
|
||||
|| "stop".equalsIgnoreCase(arr[i + 1])
|
||||
|
@ -42,7 +44,8 @@ public final class ServerCommand implements Listener {
|
|||
|| "tell".equalsIgnoreCase(arr[i + 1])
|
||||
|| "tellraw".equalsIgnoreCase(arr[i + 1])
|
||||
|| "tm".equalsIgnoreCase(arr[i + 1])
|
||||
|| "tp".equalsIgnoreCase(arr[i + 1])) {
|
||||
|| "tp".equalsIgnoreCase(arr[i + 1])
|
||||
|| "w".equalsIgnoreCase(arr[i + 1])) {
|
||||
return "cancel";
|
||||
} else if (i + 3 < arr.length
|
||||
&& "gamerule".equalsIgnoreCase(arr[i + 1])) {
|
||||
|
|
Loading…
Reference in a new issue