diff options
author | snowleo <schneeleo@gmail.com> | 2011-07-19 00:02:35 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-07-19 00:02:35 +0200 |
commit | 6dbb5bc605c6fcae709e8260e442d8023b02c6cb (patch) | |
tree | 55873bfe296de19a21c0f9e36822d842f22e6f87 | |
parent | 15687c20d0ef0421b976f08453ccf8f4b01da0b4 (diff) | |
download | Essentials-6dbb5bc605c6fcae709e8260e442d8023b02c6cb.tar Essentials-6dbb5bc605c6fcae709e8260e442d8023b02c6cb.tar.gz Essentials-6dbb5bc605c6fcae709e8260e442d8023b02c6cb.tar.lz Essentials-6dbb5bc605c6fcae709e8260e442d8023b02c6cb.tar.xz Essentials-6dbb5bc605c6fcae709e8260e442d8023b02c6cb.zip |
Always use lowercase if accessing users map.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java b/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java index 663895ff7..bb4087c92 100644 --- a/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java +++ b/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java @@ -41,7 +41,7 @@ public abstract class EssentialsCommand implements IEssentialsCommand protected User getPlayer(Server server, String[] args, int pos, boolean getOffline) throws NoSuchFieldException, NotEnoughArgumentsException { if (args.length <= pos) throw new NotEnoughArgumentsException(); - User user = ess.getAllUsers().get(args[pos]); + User user = ess.getAllUsers().get(args[pos].toLowerCase()); if (user != null) { if(!getOffline && user.isHidden()) |