diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java b/Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java index 1ec545b69..257d9a165 100644 --- a/Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java +++ b/Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java @@ -31,7 +31,7 @@ public class AlternativeCommandsHandler return; } final List<Command> commands = PluginCommandYamlParser.parse(plugin); - final String pluginName = plugin.getDescription().getName().toLowerCase(); + final String pluginName = plugin.getDescription().getName().toLowerCase(Locale.ENGLISH); for (Command command : commands) { @@ -39,18 +39,18 @@ public class AlternativeCommandsHandler final List<String> labels = new ArrayList<String>(pc.getAliases()); labels.add(pc.getName()); - PluginCommand reg = ess.getServer().getPluginCommand(pluginName + ":" + pc.getName().toLowerCase()); + PluginCommand reg = ess.getServer().getPluginCommand(pluginName + ":" + pc.getName().toLowerCase(Locale.ENGLISH)); if (reg == null) { - reg = Bukkit.getServer().getPluginCommand(pc.getName().toLowerCase()); + reg = Bukkit.getServer().getPluginCommand(pc.getName().toLowerCase(Locale.ENGLISH)); } for (String label : labels) { - List<PluginCommand> plugincommands = altcommands.get(label.toLowerCase()); + List<PluginCommand> plugincommands = altcommands.get(label.toLowerCase(Locale.ENGLISH)); if (plugincommands == null) { plugincommands = new ArrayList<PluginCommand>(); - altcommands.put(label.toLowerCase(), plugincommands); + altcommands.put(label.toLowerCase(Locale.ENGLISH), plugincommands); } boolean found = false; for (PluginCommand pc2 : plugincommands) |