Date: 2017/05/01 09:30:27 UTC-07:00
Type: Denizen Script
town_warning:
type: world
debug: false
events:
on system time minutely:
if <context.minute.mod[5].is[==].to[0]> {
- foreach <server.list_online_players> {
- if <def[value].town.balance> <= 10 {
- narrate targets:%value% "<&4><&l>Warning: <&c>Your town has a balance of 10 or less and may be deleted soon, please use <&e>/town deposit [amount]"
- playsound <def[value].location> sound:successful_hit
}
}
}