#check balance & permission node

1 messages · Page 1 of 1 (latest)

acoustic cargo
#

Context;
I’ve made custom ranks I’d like people to purchase with ingame money once they’ve reached the highest rank.

I got the permission node to work, but I can’t figure out how to check if the players balance is equal or greater to the desired price.

Here’s the code I used;

Command: /alchemist
Permission: special.rankup
Permission message: &cYou lack the knowledge or funds for this rankup!
if player’s balance is greater than or equal to 800000:
make console execute command “Lp user %player% parent set alchemist”
else:
Send “&cYou don’t have enough money!”

Apparently line 4 is the issue

Side note: this is my first time writing code so please go easy on me 🙏🏽😅

sinful gulch
#

code blocks

#

```code here```

#

whats the error? do you have vault?

#

you can use a variable too

acoustic cargo
#

Erm…. I don’t really know what to say because I went to collect a screen shot from in the world after reloading, and no error appeared. I tried it and everything worked as I wanted it….

Thank you anyways for the quick help! I’m sorry to bother you just for it to be nothing. It’s really appreciated, happy holidays (if you celebrate it 🎄)