diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandremove.java b/Essentials/src/com/earth2me/essentials/commands/Commandremove.java index 429276962..9136d2037 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandremove.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandremove.java @@ -26,6 +26,10 @@ public class Commandremove extends EssentialsCommand { World world = user.getWorld(); int radius = 0; + if (args.length < 1) + { + throw new NotEnoughArgumentsException(); + } if (args.length >= 2) { try @@ -61,7 +65,7 @@ public class Commandremove extends EssentialsCommand List types = new ArrayList(); List customTypes = new ArrayList(); - if (args.length > 0 && (args[0].contentEquals("*") || args[0].contentEquals("all"))) + if (args[0].contentEquals("*") || args[0].contentEquals("all")) { types.add(0, "ALL"); }