Always use lowercase if accessing users map.

This commit is contained in:
snowleo 2011-07-19 00:02:35 +02:00
parent 15687c20d0
commit 6dbb5bc605

View File

@ -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())