I can't get this skript to work
command /kit [<text>]:
trigger:
if arg-1 is not set:
open chest with 3 rows named "&b&lKITS" to player
wait 1 tick
format slot 3 of player with gray dye named "&7Default" with lore "&fThis is the default kit" to run [make player execute command "kit pvp"]
format slot 5 of player with lime dye named "&aVIP" with lore "&aThis is the kit for the rank &7[&aVIP&7]&f" to run [make player execute command "kit vip"]
if arg-1 is "pvp":
give iron sword of sharpness 1 and unbreaking 2 named "&8PvP Sword" to player
give iron helmet of protection 1 and unbreaking 2 to player
give iron chestplate of protection 1 and unbreaking 2 to player
give iron leggings of protection 1 and unbreaking 2 to player
give iron boots of protection 1 and unbreaking 2 to player
give bow named "&8PvP Bow" to player
give 32 arrows to player
give 5 golden apple to player
give 32 cooked beef to player
send "&bYou have received kit &8PVP"
if arg-1 is "vip":
if player has permission "vip":
give diamond sword of sharpness 2 and unbreaking 3 to player
give iron helmet of protection 2 and unbreaking 3 to player
give diamond chestplate of protection 2 and unbreaking 3 to player
give iron leggings of protection 2 and unbreaking 3 to player
give iron boots of protection 2 and unbreaking 3 to player
give bow of power 1 to player
give 64 arrows to player
give 14 golden apple to player
give 64 cooked beef to player
send "&bYou have received kit &aVIP"
if {cooldowns:layer} does not contain "pvp":
add "pvp" to {cooldowns:layer}
wait 10 second
remove "pvp" from {cooldowns:layer}
else:
send "&cayo it on cooldown"
stop
can anyone help me?
command /kit [<text>]:
trigger:
if arg-1 is not set:
open chest with 3 rows named "&b&lKITS" to player
wait 1 tick
format slot 3 of player with gray dye named "&7Default" with lore "&fThis is the default kit" to run [make player execute command "kit pvp"]
format slot 5 of player with lime dye named "&aVIP" with lore "&aThis is the kit for the rank &7[&aVIP&7]&f" to run [make player execute command "kit vip"]
if arg-1 is "pvp":
give iron sword of sharpness 1 and unbreaking 2 named "&8PvP Sword" to player
give iron helmet of protection 1 and unbreaking 2 to player
give iron chestplate of protection 1 and unbreaking 2 to player
give iron leggings of protection 1 and unbreaking 2 to player
give iron boots of protection 1 and unbreaking 2 to player
give bow named "&8PvP Bow" to player
give 32 arrows to player
give 5 golden apple to player
give 32 cooked beef to player
send "&bYou have received kit &8PVP"
if arg-1 is "vip":
if player has permission "vip":
give diamond sword of sharpness 2 and unbreaking 3 to player
give iron helmet of protection 2 and unbreaking 3 to player
give diamond chestplate of protection 2 and unbreaking 3 to player
give iron leggings of protection 2 and unbreaking 3 to player
give iron boots of protection 2 and unbreaking 3 to player
give bow of power 1 to player
give 64 arrows to player
give 14 golden apple to player
give 64 cooked beef to player
send "&bYou have received kit &aVIP"
if {cooldowns:layer} does not contain "pvp":
add "pvp" to {cooldowns:layer}
wait 10 second
remove "pvp" from {cooldowns:layer}
else:
send "&cayo it on cooldown"
stop
can anyone help me?