diff options
author | Necrodoom <doomed.war@gmail.com> | 2013-03-25 16:11:48 +0200 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-03-29 03:10:45 +0000 |
commit | 829d03161ba9d180314c4717bd646b577dfb6560 (patch) | |
tree | 57a454e40e40da548a252fefeb2e0f4f3f166e2a | |
parent | dcec29080c86ee68cdaee48a742df47c0c7322cf (diff) | |
download | Essentials-829d03161ba9d180314c4717bd646b577dfb6560.tar Essentials-829d03161ba9d180314c4717bd646b577dfb6560.tar.gz Essentials-829d03161ba9d180314c4717bd646b577dfb6560.tar.lz Essentials-829d03161ba9d180314c4717bd646b577dfb6560.tar.xz Essentials-829d03161ba9d180314c4717bd646b577dfb6560.zip |
[Fix] Sudo allowed on vanished players.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandsudo.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsudo.java b/Essentials/src/com/earth2me/essentials/commands/Commandsudo.java index b0df89a67..2d91657d6 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandsudo.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandsudo.java @@ -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) |