mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-19 13:01:20 +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();
|
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(args[1].toLowerCase(Locale.ENGLISH).startsWith("c:"))
|
||||||
{
|
{
|
||||||
if (user.isAuthorized("essentials.sudo.exempt") && sender instanceof Player)
|
if (user.isAuthorized("essentials.sudo.exempt") && sender instanceof Player)
|
||||||
|
Reference in New Issue
Block a user