Changed name of "coreprotect.lookup.item" permission to "coreprotect.lookup.inventory"

This commit is contained in:
Intelli 2021-07-26 18:49:39 -06:00
parent 490b5eb0ee
commit aeba1918f3
3 changed files with 10 additions and 5 deletions

View file

@ -227,7 +227,7 @@ public class LookupCommand {
Chat.sendMessage(player, Color.DARK_AQUA + "CoreProtect " + Color.WHITE + "- " + Phrase.build(Phrase.NO_PERMISSION));
return;
}
if (argAction.contains(11) && !player.hasPermission("coreprotect.lookup.item")) {
if (argAction.contains(11) && (!player.hasPermission("coreprotect.lookup.inventory") || !player.hasPermission("coreprotect.lookup.item"))) {
Chat.sendMessage(player, Color.DARK_AQUA + "CoreProtect " + Color.WHITE + "- " + Phrase.build(Phrase.NO_PERMISSION));
return;
}