mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-09-16 10:06:31 +02:00
New permission check: essentials.list.hidden is now required to /getpos hidden players.
This commit is contained in:
parent
a8cbb5c8f5
commit
7ca2b65c4f
@ -19,12 +19,14 @@ public class Commandgetpos extends EssentialsCommand
|
||||
if (args.length > 0 && user.isAuthorized("essentials.getpos.others"))
|
||||
{
|
||||
final User otherUser = getPlayer(server, args, 0);
|
||||
outputPosition(user, otherUser.getLocation(), user.getLocation());
|
||||
}
|
||||
else
|
||||
{
|
||||
outputPosition(user, user.getLocation(), null);
|
||||
if (!otherUser.isHidden() || user.isAuthorized("essentials.list.hidden"))
|
||||
{
|
||||
outputPosition(user, otherUser.getLocation(), user.getLocation());
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
outputPosition(user, user.getLocation(), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user