mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-03 19:15:44 +00:00
Standardize /getpos and /whois to use essentials.vanish.interact like all other commands.
This commit is contained in:
parent
88c5b64694
commit
160a1a04eb
3 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ public class Commandgetpos extends EssentialsCommand
|
||||||
if (args.length > 0 && user.isAuthorized("essentials.getpos.others"))
|
if (args.length > 0 && user.isAuthorized("essentials.getpos.others"))
|
||||||
{
|
{
|
||||||
final User otherUser = getPlayer(server, args, 0, true, false);
|
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());
|
outputPosition(user, otherUser.getLocation(), user.getLocation());
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -22,7 +22,7 @@ public class Commandlist extends EssentialsCommand
|
||||||
boolean showHidden = true;
|
boolean showHidden = true;
|
||||||
if (sender instanceof Player)
|
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));
|
sender.sendMessage(listSummary(server, showHidden));
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class Commandwhois extends EssentialsCommand
|
||||||
boolean showhidden = false;
|
boolean showhidden = false;
|
||||||
if (sender instanceof Player)
|
if (sender instanceof Player)
|
||||||
{
|
{
|
||||||
if (ess.getUser(sender).isAuthorized("essentials.list.hidden"))
|
if (ess.getUser(sender).isAuthorized("essentials.vanish.interact"))
|
||||||
{
|
{
|
||||||
showhidden = true;
|
showhidden = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue