main/Permissions

Permissions


PermissionDescription
drugdealer.reloadGives holder permission to use the "/drugdealer reload" or "/dd reload" command


Drug Permissions

The name of any drug you define determines that drug's permission. If you name a drug "Pony", it will have the node "drugdealer.Pony".

Example configuration file:

Custom-Drugs:
   Drugs:
      ID: '39'
      Message: '&cYou feel strange as the world around you slowly slips away...'
      Require-Sneak: true
      Play-Sound: true
      Effects:
      - '9:1:440'
      - '2:1:400'
   Steroids:
      ID: '382'
      Message: '&aYou feel guilty as you feel faster and more agile.'
      Require-Sneak: true
      Play-Sound: true
      Effects:
      - '1:2:400'
      - '8:1:400'
   Pony:
      ID: '1'
      Message: '&6You have consumed a drug called Pony!'
      Effects:
      - '1:5:300'

There are three drugs defined above, named "Drugs", "Steroids", and "Pony". The "Drugs" drug has the permission "drugdealer.Drugs", the "Steroids" drug has the permission "drugdealer.Steroids", and the "Pony" drug has the permission "drugdealer.Pony".