Paste #11101: check

Date: 2014/11/08 17:19:45 UTC-05:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9


permision:
  type: task
  script:
  - if <context.args.get[1].is[==].to[reload]> {
    - if <<player.is_op> || <yaml[<Perm>.read[Player.%Group%.Permission>].is[==].to[dPermissions.reload]>]> {
      - inject reload
      } else {
      - narrate "[dPermissions]<&co> You don't have permisions for that if you believe you should have permisions to this command contact the server staff"
      }