Jump to content

Need Help


Cxnnors

Recommended Posts

SO basically I want a basic rank up feature. If I have $250, I can rankup to B.

Once I get the permissions for B, I want to rankup to mine C for $500.

The problem is that the B skript interrupts the C skript and if I have $250, it takes it and ranks me up to B.

 

Code:

command /rankup:
        trigger:
                If player has permission "Default":
                        If player's balance is greater than or equal to 250:
                                execute console command "/lp user %player% permission set essentials.warp.mine2 true"
                                send "&6Rankup &7» &6You ranked up to &eB"
                                remove 250 from player's balance
                        else:
                                send "&6Rankup &7» &cYou don't have enough money!"
                if player has permission "essentials.warp.mine2":
                        if player's balance is greater than or equal to 500:
                                execute console command "/lp user %player% permission set essentials.warp.mine3 true"
                                send "&6Rankup &7» &6You ranked up to &eC"
                                remove 500 from player's balance
                                stop
                        else:
                                send "&6Rankup &7» &cYou don't have enough money!"

command /derankup:
        trigger:
                if player has permission "Default":
                        execute console command "lp user %player% permission set essentials.warp.mine2 false"
                if player has permission "essentials.warp.mine2":
                        execute console command "lp user %player% permission set essentials.warp.mine3 false"

Edited by Cxnnors
edit

😎 Certified Minehut OG since George Washington was alive. 😎

Beginner at Skripting. Already re-making Hypixel. 🤠

Sexy Hot Girl GIF by Cappa Video Productions


 

Link to comment
Share on other sites

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...