From 48e2c34902d694cf88d070ed3c1eacb8756c36d3 Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 21 Jul 2021 12:16:30 +0800 Subject: [PATCH] v4.1.2 --- pom.xml | 2 +- .../com/gmail/St3venAU/plugins/ArmorStandTools/Commands.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);