mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-08 03:50:06 +01:00
[Fix] Sudo allowed on vanished players.
This commit is contained in:
parent
98aa303ff5
commit
578576e317
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user