diff --git a/src/main/java/net/coreprotect/command/LookupCommand.java b/src/main/java/net/coreprotect/command/LookupCommand.java index 71961b3..5715c0f 100755 --- a/src/main/java/net/coreprotect/command/LookupCommand.java +++ b/src/main/java/net/coreprotect/command/LookupCommand.java @@ -209,7 +209,7 @@ public class LookupCommand { Chat.sendMessage(player, Color.DARK_AQUA + "CoreProtect " + Color.WHITE + "- " + Phrase.build(Phrase.NO_PERMISSION)); return; } - if (argAction.contains(4) && !player.hasPermission("coreprotect.lookup.container")) { + if (argAction.contains(4) && !argAction.contains(11) && !player.hasPermission("coreprotect.lookup.container")) { Chat.sendMessage(player, Color.DARK_AQUA + "CoreProtect " + Color.WHITE + "- " + Phrase.build(Phrase.NO_PERMISSION)); return; } @@ -233,7 +233,11 @@ 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.inventory") || !player.hasPermission("coreprotect.lookup.item"))) { + if (argAction.contains(11) && !argAction.contains(4) && !player.hasPermission("coreprotect.lookup.item")) { + Chat.sendMessage(player, Color.DARK_AQUA + "CoreProtect " + Color.WHITE + "- " + Phrase.build(Phrase.NO_PERMISSION)); + return; + } + if (argAction.contains(4) && argAction.contains(11) && !player.hasPermission("coreprotect.lookup.inventory")) { Chat.sendMessage(player, Color.DARK_AQUA + "CoreProtect " + Color.WHITE + "- " + Phrase.build(Phrase.NO_PERMISSION)); return; } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 54a2ad0..b8ea535 100755 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -106,8 +106,8 @@ permissions: description: Has permission to lookup inventory transactions default: op coreprotect.lookup.item: - description: Has permission to lookup inventory transactions (deprecated) - default: true + description: Has permission to lookup item transactions + default: op coreprotect.lookup.kill: description: Has permission to lookup entity kills default: op