ChestCommands icon indicating copy to clipboard operation
ChestCommands copied to clipboard

Added Multiple permissions.

Open apachezy opened this issue 5 years ago • 1 comments

Sometimes we need to judge multiple permissions, we can write nodes like this:

upgrad-to-vip2:
  MATERIAL: diamond
  POSITION-X: 2
  POSITION-Y: 1
  NAME: '&eVIP2'
  LORE:
    - 'Upgrade from vip1 to vip2.'
    - '1. You can ...'
    - '2. You can ...'
  ACTIONS:
    - 'console: lp user {player} promote track1'
    - 'broadcast: Congratulations to {player} for upgrading to VIP2.'
  PERMISSIONS:
    - 'myserver.vip1'     # Must have vip1 to upgrade vip2
    - '-myserver.vip2'    # If it is already vip2, it cannot be upgraded.
  PERMISSION-MESSAGES:
    - 'Hey, {player}, you must be vip1 to upgrade to vip2.'
    - 'Hey, {player}, you are already vip2, please do not upgrade repeatedly.'

apachezy avatar Feb 12 '21 16:02 apachezy

Sorry, I accidentally deleted the created branch, which caused the RP to be closed. Now I restored the branch and resubmitted the RP here. Please review.

apachezy avatar Feb 13 '21 05:02 apachezy

Sorry, I'm officially putting this plugin in maintenance-only mode. I already didn't have enough free time, I should have done it earlier.

filoghost avatar Apr 23 '23 16:04 filoghost