diff --git a/Essentials/src/com/earth2me/essentials/Settings.java b/Essentials/src/com/earth2me/essentials/Settings.java index 5f1463f77..862c559e1 100644 --- a/Essentials/src/com/earth2me/essentials/Settings.java +++ b/Essentials/src/com/earth2me/essentials/Settings.java @@ -137,7 +137,13 @@ public class Settings implements IConf public Object getKit(String name) { Map kits = (Map)config.getProperty("kits"); - return kits.get(name.replace('.', '_').replace('/', '_')); + for (Map.Entry entry : kits.entrySet()) + { + if (entry.getKey().equalsIgnoreCase(name.replace('.', '_').replace('/', '_'))) { + return entry.getValue(); + } + } + return null; } public ChatColor getOperatorColor() throws Exception diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandkit.java b/Essentials/src/com/earth2me/essentials/commands/Commandkit.java index 4b71374ff..e6b5d1cd1 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandkit.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandkit.java @@ -33,7 +33,7 @@ public class Commandkit extends EssentialsCommand StringBuilder list = new StringBuilder(); for (String k : kits.keySet()) { - if (user.isAuthorized("essentials.kit." + k)) + if (user.isAuthorized("essentials.kit." + k.toLowerCase())) { list.append(" ").append(k); } @@ -147,7 +147,7 @@ public class Commandkit extends EssentialsCommand { user.sendMessage(ex.getMessage()); } - user.sendMessage(Util.format("kitGive", args[0].toLowerCase())); + user.sendMessage(Util.format("kitGive", kitName)); } catch (Exception ex) {