mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-24 12:16:36 +01:00
Changed name of "coreprotect.lookup.item" permission to "coreprotect.lookup.inventory"
This commit is contained in:
parent
490b5eb0ee
commit
aeba1918f3
@ -55,8 +55,8 @@ The following permissions can be used to restrict functionality within the plugi
|
||||
* **coreprotect.lookup.container** *(default: op)*
|
||||
Can be optionally used as a negative permission to prevent container lookups.
|
||||
|
||||
* **coreprotect.lookup.item** *(default: op)*
|
||||
Can be optionally used as a negative permission to prevent item lookups.
|
||||
* **coreprotect.lookup.inventory** *(default: op)*
|
||||
Can be optionally used as a negative permission to prevent inventory lookups.
|
||||
|
||||
* **coreprotect.lookup.kill** *(default: op)*
|
||||
Can be optionally used as a negative permission to prevent entity kill lookups.
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -44,6 +44,7 @@ permissions:
|
||||
coreprotect.lookup.sign: true
|
||||
coreprotect.lookup.click: true
|
||||
coreprotect.lookup.container: true
|
||||
coreprotect.lookup.inventory: true
|
||||
coreprotect.lookup.item: true
|
||||
coreprotect.lookup.kill: true
|
||||
coreprotect.teleport: true
|
||||
@ -71,6 +72,7 @@ permissions:
|
||||
coreprotect.lookup.sign: true
|
||||
coreprotect.lookup.click: true
|
||||
coreprotect.lookup.container: true
|
||||
coreprotect.lookup.inventory: true
|
||||
coreprotect.lookup.item: true
|
||||
coreprotect.lookup.kill: true
|
||||
coreprotect.lookup.near:
|
||||
@ -100,9 +102,12 @@ permissions:
|
||||
coreprotect.lookup.container:
|
||||
description: Has permission to lookup container transactions
|
||||
default: op
|
||||
coreprotect.lookup.item:
|
||||
description: Has permission to lookup item transactions
|
||||
coreprotect.lookup.inventory:
|
||||
description: Has permission to lookup inventory transactions
|
||||
default: op
|
||||
coreprotect.lookup.item:
|
||||
description: Has permission to lookup inventory transactions (deprecated)
|
||||
default: true
|
||||
coreprotect.lookup.kill:
|
||||
description: Has permission to lookup entity kills
|
||||
default: op
|
||||
|
Loading…
Reference in New Issue
Block a user