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

@ -55,8 +55,8 @@ The following permissions can be used to restrict functionality within the plugi
* **coreprotect.lookup.container** *(default: op)* * **coreprotect.lookup.container** *(default: op)*
Can be optionally used as a negative permission to prevent container lookups. Can be optionally used as a negative permission to prevent container lookups.
   
* **coreprotect.lookup.item** *(default: op)* * **coreprotect.lookup.inventory** *(default: op)*
Can be optionally used as a negative permission to prevent item lookups. Can be optionally used as a negative permission to prevent inventory lookups.
   
* **coreprotect.lookup.kill** *(default: op)* * **coreprotect.lookup.kill** *(default: op)*
Can be optionally used as a negative permission to prevent entity kill lookups. Can be optionally used as a negative permission to prevent entity kill lookups.

View File

@ -227,7 +227,7 @@ public class LookupCommand {
Chat.sendMessage(player, Color.DARK_AQUA + "CoreProtect " + Color.WHITE + "- " + Phrase.build(Phrase.NO_PERMISSION)); Chat.sendMessage(player, Color.DARK_AQUA + "CoreProtect " + Color.WHITE + "- " + Phrase.build(Phrase.NO_PERMISSION));
return; 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)); Chat.sendMessage(player, Color.DARK_AQUA + "CoreProtect " + Color.WHITE + "- " + Phrase.build(Phrase.NO_PERMISSION));
return; return;
} }

View File

@ -44,6 +44,7 @@ permissions:
coreprotect.lookup.sign: true coreprotect.lookup.sign: true
coreprotect.lookup.click: true coreprotect.lookup.click: true
coreprotect.lookup.container: true coreprotect.lookup.container: true
coreprotect.lookup.inventory: true
coreprotect.lookup.item: true coreprotect.lookup.item: true
coreprotect.lookup.kill: true coreprotect.lookup.kill: true
coreprotect.teleport: true coreprotect.teleport: true
@ -71,6 +72,7 @@ permissions:
coreprotect.lookup.sign: true coreprotect.lookup.sign: true
coreprotect.lookup.click: true coreprotect.lookup.click: true
coreprotect.lookup.container: true coreprotect.lookup.container: true
coreprotect.lookup.inventory: true
coreprotect.lookup.item: true coreprotect.lookup.item: true
coreprotect.lookup.kill: true coreprotect.lookup.kill: true
coreprotect.lookup.near: coreprotect.lookup.near:
@ -100,9 +102,12 @@ permissions:
coreprotect.lookup.container: coreprotect.lookup.container:
description: Has permission to lookup container transactions description: Has permission to lookup container transactions
default: op default: op
coreprotect.lookup.item: coreprotect.lookup.inventory:
description: Has permission to lookup item transactions description: Has permission to lookup inventory transactions
default: op default: op
coreprotect.lookup.item:
description: Has permission to lookup inventory transactions (deprecated)
default: true
coreprotect.lookup.kill: coreprotect.lookup.kill:
description: Has permission to lookup entity kills description: Has permission to lookup entity kills
default: op default: op