Hello everyone again! This is a bit of an odd situation again but I'll give you a rundown. I am trying to make a skript where if you click on a sign it will check how much money you have and if you have more than the specified money it will allow you to click the block underneath it which in turn gives you more money.
I have some idea of how to pull this off, my best guess would be to use the sk-perm and a if statement but other than that I am beyond confused.
Code at the moment is looking like this
There are 4 errors which I don't know how to fix and they are all the same "all code has to be put into trigger" these errors are in line 19, 20, 21 and 22
Like always any and all help is appreciated!
I have some idea of how to pull this off, my best guess would be to use the sk-perm and a if statement but other than that I am beyond confused.
Code at the moment is looking like this
Code:
options:
balance: 0
starting_money: 0
minium_money: 0
maxium_money:1000000000000
on rightclick on dirt:
message "&A+1$"
add 1 to player's balance
command /balance:
trigger:
send "&ABalance: &C%player's balance%"
on left click on spruce sign:
message "You are about to buy this, left click again to buy"
if %player's balance% is less than 500
"You don't have enough money! Do /bal to see how much money you have"
else
message "You've brought it!"
There are 4 errors which I don't know how to fix and they are all the same "all code has to be put into trigger" these errors are in line 19, 20, 21 and 22
Like always any and all help is appreciated!