Code:
on rightclick on sign:
line 1 of the clicked block is "[Region]":
set {regiontmp} to line 2
if line 4 is empty:
set {moneytmp} to line 3
if player's money is more than or equal to {moneytmp}:
remove {moneytmp} from player's money
set line 4 to "%player%"
execute console command "rg addmember -w %player's world% %{regiontmp}% %player%"
clear {moneytmp}
clear {regiontmp}
else:
send "&cNot enough money."
stop trigger
else:
send "&cAlready in use."
stop trigger
Everything is working fine except the money. it keeps saying not enough money, even if the player has enough.
Using newest SkriptLang-version.