command /sell:
trigger:
if player's held item is dirt:
add 10*%amount of player's tool% to {total}
if player's held item is grass_block:
add 10*%amount of player's tool% to {total}
if player's held item is oak_log:
add 10*%amount of player's tool% to {total}
if player's held item is oak_leaves:
add 10*%amount of player's tool% to {total}
send "Sold your held item for %{total}%"
add {total} to {money::%player%}
set player's held item to air
command /withdraw:
trigger:
if {money::%player%} is greater than 0:
set {money::%player%} to {money::%player%}-1
give player sunflower named "&eToken"
else:
send "&4Too poor"