mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-19 04:52:30 +02:00
[Fix] Sudo allowed on vanished players.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user