mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2024-11-28 13:15:23 +01:00
Fix /playerinfo others check.
This commit is contained in:
parent
ef9324efd1
commit
d4b99f5f74
@ -114,8 +114,9 @@ public void execute(CommandSender src, @Optional String[] args) throws InvalidCo
|
||||
}
|
||||
|
||||
// otherwise if no permission to delve into another player's claims data or self
|
||||
if ((user != null && user != src && !src.hasPermission(GDPermissions.COMMAND_PLAYER_INFO_OTHERS))) {
|
||||
if (user != null && user.getOnlinePlayer() != src && !src.hasPermission(GDPermissions.COMMAND_PLAYER_INFO_OTHERS)) {
|
||||
TextAdapter.sendComponent(src, MessageCache.getInstance().PERMISSION_PLAYER_VIEW_OTHERS);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
@ -114,8 +114,9 @@ public void execute(CommandSource src, @Optional String[] args) throws InvalidCo
|
||||
}
|
||||
|
||||
// otherwise if no permission to delve into another player's claims data or self
|
||||
if ((user != null && user != src && !src.hasPermission(GDPermissions.COMMAND_PLAYER_INFO_OTHERS))) {
|
||||
if (user != null && user.getOnlinePlayer() != src && !src.hasPermission(GDPermissions.COMMAND_PLAYER_INFO_OTHERS)) {
|
||||
TextAdapter.sendComponent(src, MessageCache.getInstance().PERMISSION_PLAYER_VIEW_OTHERS);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user