Date: 2016/01/12 09:47:55 UTC-08:00
Type: Denizen Script
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"
}