mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-04 19:46:27 +00:00
[Fix] Sudo allowed on vanished players.
This commit is contained in:
parent
98aa303ff5
commit
578576e317
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue