[Fix] Sudo allowed on vanished players.

This commit is contained in:
Necrodoom 2013-03-25 16:11:48 +02:00 committed by KHobbits
parent 98aa303ff5
commit 578576e317

View File

@ -27,7 +27,7 @@ public class Commandsudo extends EssentialsCommand
throw new NotEnoughArgumentsException();
}
final User user = getPlayer(server, args, 0);
final User user = getPlayer(server, args, 0, true, false);
if(args[1].toLowerCase(Locale.ENGLISH).startsWith("c:"))
{
if (user.isAuthorized("essentials.sudo.exempt") && sender instanceof Player)