WELP

  • 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 comminuty!

    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.

dxcf

Member
Apr 8, 2020
26
0
1
23
code_language.skript:
command /levelup:
    trigger:
        open virtual chest inventory with size 6 named "&6&lLevel &a&lUp" to player
        format gui slot 0 of player with coal block named "&8[&a1✩&8]" with lore "&6Price: &a1 XP" and "&6Click to levelup!" to close then run:
            if {level::%player's uuid%} is greater than to 0:
                send "&c&l[!] &cYou have already leveled up higher than this level. Please choose a higher level to levelup." to player
            if {level::%player's uuid%} is less than 1:
                send "&c&l[!] &cYou have insufficient funds to level up here. Please choose a lower level to levelup first." to player
            else:
                if player's level is higher than to 0:
                    make console execute command "announcement &6%player% &ajust &bleveled up &ato their &bvery first level! &5&lGG"
                    remove 1 from player's level
                    set {level::%player's uuid%} to 1
                else:
                    send "&8&l(&b&l!&8&l) &bYou have insufficient funds to levelup." to player

Can someone fix it?
It says coal block is not a vaild type of rescpie
 
Status
Not open for further replies.