My script only works if I have exactly 10000. If I have more then 10000 it tells me "You don't have enough money!" It seems like it's not recognizing the <. Can someone tell me how to resolve this?
command /rsp:
description: This will buy you back to life for $10000
permission: sk.respawn
permission message: &cYou cannot preform this command!
trigger:
if balance of player <= 10000:
remove 10000 from player's balance
set player's gamemode to survival
message "&2&lYou have been revived!" to player
if balance of player > 10000:
message "&4&lYou don't have enough money!" to player
command /rsp:
description: This will buy you back to life for $10000
permission: sk.respawn
permission message: &cYou cannot preform this command!
trigger:
if balance of player <= 10000:
remove 10000 from player's balance
set player's gamemode to survival
message "&2&lYou have been revived!" to player
if balance of player > 10000:
message "&4&lYou don't have enough money!" to player