mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2025-02-27 03:41:46 +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
|
// 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);
|
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
|
// 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);
|
TextAdapter.sendComponent(src, MessageCache.getInstance().PERMISSION_PLAYER_VIEW_OTHERS);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user