2.7.0_Snapshot-3 | Perm Update

Removed permissiond regestration from plugin.yml and regestred via code.
- The Slot See and Use Permissions are now included in OP and commandgui.admin
This commit is contained in:
2022-04-19 09:22:56 +02:00
parent 8e90aee0ca
commit 520df8dc97
4 changed files with 111 additions and 62 deletions

View File

@@ -19,56 +19,54 @@ commands:
commandguihelp:
description: CommandGUI Help
aliases: [cguihelp, guihelp]
# commandguiadmin:
# aliases: [cguiadmin, cguia]
commandgui-item:
aliases: [gui-item]
permissions:
commandgui.admin:
description: All permissions from CommandGUI
default: op
children:
commandgui.updatemsg: true
commandgui.command: true
commandgui.get.guiitem.at.login: true
commandgui.useitem: true
commandgui.useitem.toggle: true
commandgui.bypass: true
commandgui.command.info: true
commandgui.command.give: true
commandgui.player:
description: All permissions from CommandGUI
default: op
children:
commandgui.command: true
commandgui.get.guiitem.at.login: true
commandgui.useitem: true
commandgui.useitem.toggle: true
commandgui.updatemsg:
description: Players with this permission get the update message when joining if an update is available
default: op
commandgui.command:
description: Required permission to open GUIs via command
default: op
commandgui.get.guiitem.at.login:
description: Only players with this permission will receive the GUI item
default: op
commandgui.useitem:
description: Required permission to use the GUI Item
default: op
commandgui.useitem.toggle:
description: Required permission to enable/disable the GUI Item for itself (if the function UseItem/AllowToggle is set to true)
default: op
commandgui.bypass:
description: Bypass to open disabled GUIs
default: op
commandgui.command.info:
description: Permission to view CommandGUI info
default: not op
commandgui.command.give:
description: Kommend in V2.1.0
default: op
#permissions:
# commandgui.admin:
# description: All permissions from CommandGUI
# default: op
# children:
# commandgui.command: true
# commandgui.get.guiitem.at.login: true
# commandgui.useitem: true
# commandgui.useitem.toggle: true
# commandgui.updatemsg: true
# commandgui.bypass: true
# commandgui.command.info: true
# commandgui.command.give: true
#
# commandgui.player:
# description: All permissions from CommandGUI
# default: op
# children:
# commandgui.command: true
# commandgui.get.guiitem.at.login: true
# commandgui.useitem: true
# commandgui.useitem.toggle: true
#
# commandgui.updatemsg:
# description: Players with this permission get the update message when joining if an update is available
# default: op
# commandgui.command:
# description: Required permission to open GUIs via command
# default: op
# commandgui.get.guiitem.at.login:
# description: Only players with this permission will receive the GUI item
# default: op
# commandgui.useitem:
# description: Required permission to use the GUI Item
# default: op
# commandgui.useitem.toggle:
# description: Required permission to enable/disable the GUI Item for itself (if the function UseItem/AllowToggle is set to true)
# default: op
# commandgui.bypass:
# description: Bypass to open disabled GUIs
# default: op
# commandgui.command.info:
# description: Permission to view CommandGUI info
# default: not op
# commandgui.command.give:
# description: Kommend in V2.1.0
# default: op