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!"