diff options
author | KHobbits <rob@khobbits.co.uk> | 2013-05-26 17:20:03 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-05-26 17:20:03 +0100 |
commit | 160a1a04eb5e8c7d343bd1b934bdabf8f26947be (patch) | |
tree | 23f5d7b8c042d49bf5f4a6cabfca0a38ca08411e | |
parent | 88c5b6469497de0975670a59d9ef28f225705888 (diff) | |
download | Essentials-160a1a04eb5e8c7d343bd1b934bdabf8f26947be.tar Essentials-160a1a04eb5e8c7d343bd1b934bdabf8f26947be.tar.gz Essentials-160a1a04eb5e8c7d343bd1b934bdabf8f26947be.tar.lz Essentials-160a1a04eb5e8c7d343bd1b934bdabf8f26947be.tar.xz Essentials-160a1a04eb5e8c7d343bd1b934bdabf8f26947be.zip |
Standardize /getpos and /whois to use essentials.vanish.interact like all other commands.
3 files changed, 3 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandgetpos.java b/Essentials/src/com/earth2me/essentials/commands/Commandgetpos.java index 6e6dfcee7..99763f4a2 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandgetpos.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandgetpos.java @@ -20,7 +20,7 @@ public class Commandgetpos extends EssentialsCommand if (args.length > 0 && user.isAuthorized("essentials.getpos.others")) { final User otherUser = getPlayer(server, args, 0, true, false); - if (!otherUser.isHidden() || user.isAuthorized("essentials.list.hidden")) + if (!otherUser.isHidden() || user.isAuthorized("essentials.vanish.interact")) { outputPosition(user, otherUser.getLocation(), user.getLocation()); return; diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandlist.java b/Essentials/src/com/earth2me/essentials/commands/Commandlist.java index d4f75df14..5e0c03387 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandlist.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandlist.java @@ -22,7 +22,7 @@ public class Commandlist extends EssentialsCommand boolean showHidden = true; if (sender instanceof Player) { - showHidden = ess.getUser(sender).isAuthorized("essentials.list.hidden"); + showHidden = ess.getUser(sender).isAuthorized("essentials.list.hidden") || ess.getUser(sender).isAuthorized("essentials.vanish.interact"); } sender.sendMessage(listSummary(server, showHidden)); diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java b/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java index e95d14834..60ec68aa2 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java @@ -27,7 +27,7 @@ public class Commandwhois extends EssentialsCommand boolean showhidden = false; if (sender instanceof Player) { - if (ess.getUser(sender).isAuthorized("essentials.list.hidden")) + if (ess.getUser(sender).isAuthorized("essentials.vanish.interact")) { showhidden = true; } |