mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-09-06 04:58:00 +02:00
Always use lowercase if accessing users map.
This commit is contained in:
parent
15687c20d0
commit
6dbb5bc605
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user