From 6568b2e87d0778982aa00dd1abb68640b9e2ff2d Mon Sep 17 00:00:00 2001 From: mathiascode Date: Sat, 12 Dec 2020 18:30:40 +0200 Subject: [PATCH] Add latest changes --- .../java/pw/kaboom/extras/modules/entity/EntitySpawn.java | 3 +++ .../java/pw/kaboom/extras/modules/server/ServerCommand.java | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/pw/kaboom/extras/modules/entity/EntitySpawn.java b/src/main/java/pw/kaboom/extras/modules/entity/EntitySpawn.java index f9316da..2bdf6f7 100644 --- a/src/main/java/pw/kaboom/extras/modules/entity/EntitySpawn.java +++ b/src/main/java/pw/kaboom/extras/modules/entity/EntitySpawn.java @@ -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); } } diff --git a/src/main/java/pw/kaboom/extras/modules/server/ServerCommand.java b/src/main/java/pw/kaboom/extras/modules/server/ServerCommand.java index c7dd00b..9dc0a84 100644 --- a/src/main/java/pw/kaboom/extras/modules/server/ServerCommand.java +++ b/src/main/java/pw/kaboom/extras/modules/server/ServerCommand.java @@ -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])) {