mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-25 12:25:37 +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)*
|
* **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.
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user