Paste #28376: Untitled Paste

Date: 2016/01/13 09:48:17 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


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