From 6dbb5bc605c6fcae709e8260e442d8023b02c6cb Mon Sep 17 00:00:00 2001 From: snowleo Date: Tue, 19 Jul 2011 00:02:35 +0200 Subject: [PATCH] Always use lowercase if accessing users map. --- .../src/com/earth2me/essentials/commands/EssentialsCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())