diff --git a/pom.xml b/pom.xml index 9ba63ff..165ee64 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.gmail.St3venAU.plugins ArmorStandTools -4.1.1 +4.1.2 ArmorStandTools diff --git a/src/main/java/com/gmail/St3venAU/plugins/ArmorStandTools/Commands.java b/src/main/java/com/gmail/St3venAU/plugins/ArmorStandTools/Commands.java index c6262cd..eff2455 100644 --- a/src/main/java/com/gmail/St3venAU/plugins/ArmorStandTools/Commands.java +++ b/src/main/java/com/gmail/St3venAU/plugins/ArmorStandTools/Commands.java @@ -44,7 +44,7 @@ class Commands implements CommandExecutor, TabCompleter { ArmorStand as = (ArmorStand) l.getWorld().spawnEntity(l, EntityType.ARMOR_STAND); AST.pickUpArmorStand(as, p); Utils.title(p, Config.carrying); - } else if (args[0].equalsIgnoreCase("reload")) { + } else if (args.length > 0 && args[0].equalsIgnoreCase("reload")) { if (Utils.hasPermissionNode(p, "astools.reload")) { Config.reload(null); p.sendMessage(ChatColor.GREEN + Config.reloaded);