summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-07-19 00:02:35 +0200
committersnowleo <schneeleo@gmail.com>2011-07-19 00:02:35 +0200
commit6dbb5bc605c6fcae709e8260e442d8023b02c6cb (patch)
tree55873bfe296de19a21c0f9e36822d842f22e6f87
parent15687c20d0ef0421b976f08453ccf8f4b01da0b4 (diff)
downloadEssentials-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.java2
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())