Jump to content
  • 0

Need help with Lucky Perm + Skript


ZeptoMC

Question

I have set a ranks through lucky perms. and i was trying to make a /rankup and /confirmrankup, but failed... it says an internal error occured. The /rankup works, but the /confirmrankup does not (an internal error occured), I was wondering if it is the problem is on "if player's balance is greater than or equal to 1000:". I am running the server on MineHut and installed vault and Ultimate economy

 

command /rankup:
    trigger:
        if player has permission "rankup1":
            set {rankup.%player%} to true
            send "&8[&c&lRANKUP&8] &fAre you sure you want to rank up to &aPineapple &for &a$1,000© &7(type /confirmrankup to confirm)"

command /confirmrankup:
    trigger:
        if player has permission "rankup1":
            if {rankup.%player%} is true:
                if player's balance is greater than or equal to 1000:
                    make console execute command "lp u %player% parent set pineapple"
                    make console execute command "economy take %player% 1000"
                    send "&8[&c&lRANKUP&8] &fYou are now a&aPineapple"
                    wait 3 seconds
                    set {rankup.%player%} to false
                else:
                    send "&8[&c&lRANKUP&8] &cYou do not have sufficient funds"
                    set {rankup.%player%} to false
            else:
                send "&8[&c&lRANKUP&8] &fType &a/rankup &ffirst!"

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...