Internal Error

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ChocoAura

Member
Jul 3, 2019
38
0
6
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

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.
 
Status
Not open for further replies.