when I do /bal even after clicking with the button it shows <none> anyone know? Skript:
[doublepost=1566899150,1566898527][/doublepost]Got Help from discord
Code:
options:
money: 0
price: 10
command /start:
trigger:
if {start.%player%} is not set:
send "&b---Start---"
give 1 oak button named "&b&lClicker Button" to player
set {start.%player%} to true
stop
send "&4&lYou Have Started Already!"
command /restartpl <player>:
permission: clicker.admin
trigger:
delete {start.%argument%}
send "&4&lRestarted %argument% &4<hey can now use /start again" to player
on right click with oak button:
uncolored name of tool is "Clicker Button":
cancel event
send "&b Click " to player
add {cpc.%player%} to {money.%player%}
on left click with oak button:
uncolored name of tool is "Clicker Button":
cancel event
send "&b Shop Opened " to player
make console execute command "/execute at %player% run playsound minecraft:block.note_block.pling ambient %player% ~ ~ ~ 100 1"
open chest with 1 row named "&cShop" to player
wait 1 tick
format slot 0 of player with red glass named "&4&lClose" to close
command /addcps:
trigger:
if {money.%player%} is more than or equal to {price.%player%}:
send "&b&lUpgraded!" to player
add 1 to {cpc.%player%}
remove {price.%player%} from {money.%player%}
add 10 to {price.%player%}
stop
send "Not Enough Money!"
command /bal:
trigger:
send "%{money.player}%" to player