Paste #56895: time tracker membership

Date: 2019/08/15 19:03: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


time_tracker:
    type: world
    events:
        on system time minutely:
        - foreach <server.list_online_players> as:player:
            - adjust <queue> linked_player:<[player]>
            - if <player.location.distance[<player.flag[last_loc]||0,0,0>].horizontal.multiworld> < 0.1:
                - foreach next
            - flag player last_loc:<player.location>
            - flag player minutes_played:++
            - if <player.flag[minutes_played]> >= 180 && <player.groups> == <list[default]>:
                - group set member