Hello, I've been coding kits for a server I'm developing on, and one of the kits that I've coded, when you try to access it, it says an internal error has occurred. Here is my code
I don't know why this causes an error, because I've made multiple kits with this same method before.
Please help, and thanks in advance!
Edit: I tested the other kits that I made this way and they worked just fine.
Code:
if arg-1 is "vanisher":
if {adventurerank.%uuid of player%} is greater than or equal to 30:
if {cooldown.vanisher.pvp.%uuid of player%} is not set:
set {_item} to leather boots
enchant {_item} with protection 3 and unbreaking 10
dye {_item} light gray
set name of {_item} to "&7Vanisher Boots"
give player 1 of {_item}
set {_item} to leather leggings
enchant {_item} with protection 3 and unbreaking 10
dye {_item} light gray
set name of {_item} to "&7Vanisher Leggings"
give player 1 of {_item}
set {_item} to leather chestplate
enchant {_item} with protection 3 and unbreaking 10
dye {_item} light gray
set name of {_item} to "&7Vanisher Chestplate"
give player 1 of {_item}
set {_item} to leather helmet
enchant {_item} with protection 3 and unbreaking 10
dye {_item} light gray
set name of {_item} to "&7Vanisher Helmet"
give player 1 of {_item}
give player unbreakable iron sword of sharpness 1 named "&7Vanisher Sword"
give player glass pane named "&7&lInvisibility Cloak"
set {cooldown.vanisher.pvp.%uuid of player%} to "a"
wait 15 minutes
delete {cooldown.vanisher.pvp.%uuid of player%}
else:
send "&cYou cannot use this kit, as it is on cooldown!"
stop
else:
send "&cYou must be at least adventure rank 30 to use this kit!"
stop
I don't know why this causes an error, because I've made multiple kits with this same method before.
Please help, and thanks in advance!
Edit: I tested the other kits that I made this way and they worked just fine.