tag @s remove money_timer
title @s actionbar ""
scoreboard players operation @s money_timer.pay_total = @s money_timer.pay
scoreboard players operation @s money_timer.pay *= .1000 money_timer.pay
scoreboard players operation @s money_timer.pay /= @s money_timer.time
scoreboard players operation @s money_timer.pay /= .ticks money_timer.pay
tellraw @s {"translate":"unishop.item.money_timer.stopped","color":"red"}
tellraw @s[scores={money_timer.time_sec=10..,money_timer.time_min=10..}] [{"score":{"name":"*","objective":"money_timer.time_hour"}},":",{"score":{"name":"*","objective":"money_timer.time_min"}},":",{"score":{"name":"*","objective":"money_timer.time_sec"}},{"color":"gray","text":" /// "},{"bold":true,"color":"dark_green","score":{"name":"*","objective":"money_timer.pay_total"}},{"bold":true,"color":"dark_green","text":"$"}]
tellraw @s[scores={money_timer.time_sec=10..,money_timer.time_min=..9}] [{"score":{"name":"*","objective":"money_timer.time_hour"}},":0",{"score":{"name":"*","objective":"money_timer.time_min"}},":",{"score":{"name":"*","objective":"money_timer.time_sec"}},{"color":"gray","text":" /// "},{"bold":true,"color":"dark_green","score":{"name":"*","objective":"money_timer.pay_total"}},{"bold":true,"color":"dark_green","text":"$"}]
tellraw @s[scores={money_timer.time_sec=..9,money_timer.time_min=10..}] [{"score":{"name":"*","objective":"money_timer.time_hour"}},":",{"score":{"name":"*","objective":"money_timer.time_min"}},":0",{"score":{"name":"*","objective":"money_timer.time_sec"}},{"color":"gray","text":" /// "},{"bold":true,"color":"dark_green","score":{"name":"*","objective":"money_timer.pay_total"}},{"bold":true,"color":"dark_green","text":"$"}]
tellraw @s[scores={money_timer.time_sec=..9,money_timer.time_min=..9}] [{"score":{"name":"*","objective":"money_timer.time_hour"}},":0",{"score":{"name":"*","objective":"money_timer.time_min"}},":0",{"score":{"name":"*","objective":"money_timer.time_sec"}},{"color":"gray","text":" /// "},{"bold":true,"color":"dark_green","score":{"name":"*","objective":"money_timer.pay_total"}},{"bold":true,"color":"dark_green","text":"$"}]
tellraw @s [{"translate":"unishop.item.money_timer.earnedduring"},{"score":{"name":"*","objective":"money_timer.pay"},"color":"dark_green"},{"bold":true,"color":"dark_green","text":"$"},{"translate":"unishop.item.money_timer.persecond"}]
execute at @s run playsound minecraft:item.spyglass.use player @s 
execute at @s run playsound minecraft:block.bamboo.place player @s