Paste #28307: Untitled Paste

Date: 2016/01/12 09:47:55 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12


on player clicks kit_menu_slot1 in kit_menu:
        - if <player.has_permission[essentials.kits.peasant]> {
          - flag player defaultcooldown duration:60m
        } else {
          - narrate "<&c>Error: You do not have access to this kit."
        }
        - if <player.has_flag[defaultcooldown]>  {
          - narrate "<&c>Error: You must wait before using this kit again. [<player.flag[defaultcooldown].expiration.formatted> left]"
          - determine cancelled
        } else {
          - execute as_server "kit <player.name> Peasant"
        }