Code:
command /warden:
cooldown: 5 seconds
trigger:
set {warden} to true
on command "/warden":
if {warden} is true:
send "&c&lError &c- There is a warden wait till the warden dies!"
else:
clear player's inventory
send title "&c%player% Is now the &c&lWARDEN" to all players
play sound "block.end_portal.spawn" to all players
set player's group to "warden"
teleport player to {wardenspawn}
wait 3 ticks
set player's helmet slot to {wardenh}
set player's chestplate slot to {wardenc}
set player's leggings slot to {wardenl}
set player's boots slot to {wardenb}
give player 1 of {wardens}
give player 1 of {keycard}
give player 1 of bow
give player 64 of arrows
give player 64 of {steak}
on death:
if victim's group = "warden":
set {warden} to false
set victim's group to "default"