diff --git a/plugin/build.gradle b/plugin/build.gradle index 39b02fd5d..5996a2d80 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -50,7 +50,7 @@ buildConfig { } prepareTestTask() - .versions('1.21.3', '1.21.1', '1.20.6', '1.20.4', '1.20.2', '1.20.1', '1.19.4', '1.19.3', '1.18.2', '1.17.1', '1.16.5', '1.15.2', '1.14.4', '1.13.2', '1.12.2', '1.11.2', '1.10.2', '1.9.4', '1.8.8') + .versions('1.21.4', '1.21.3', '1.21.1', '1.20.6', '1.20.4', '1.20.2', '1.20.1', '1.19.4', '1.19.3', '1.18.2', '1.17.1', '1.16.5', '1.15.2', '1.14.4', '1.13.2', '1.12.2', '1.11.2', '1.10.2', '1.9.4', '1.8.8') .setSubdirectory("paper-0-2-x-branch") .jvmArgs('-Dio.papermc.paper.suppress.sout.nags=true', '-DPaper.IgnoreJavaVersion=true') // suppress System.out.println nag .onlineMode(false) diff --git a/plugin/src/main/java/org/screamingsandals/bedwars/game/GameCreator.java b/plugin/src/main/java/org/screamingsandals/bedwars/game/GameCreator.java index a83bc4b6a..44e222402 100644 --- a/plugin/src/main/java/org/screamingsandals/bedwars/game/GameCreator.java +++ b/plugin/src/main/java/org/screamingsandals/bedwars/game/GameCreator.java @@ -174,7 +174,7 @@ public boolean cmd(Player player, String action, String[] args) { } else { response = null; } - } else { + } else if (args.length == 2) { response = addSpawner(args[1], player.getLocation(), null, true, 1, null, -1); } } else if (args[0].equalsIgnoreCase("remove")) {