Paste #41620: Edit of P#41619 - Untitled Paste

Date: 2017/05/01 09:36:08 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13


town_warning:
    type: world
    debug: false
    events:
        on system time minutely:
         if (<context.minute> % 5) == 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
              }
            }
         }