Paste #30416: Untitled Paste

Date: 2016/02/15 18:34:19 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11


olinetimetask:
  type: task
  debug: false
  script:
   - foreach <server.list_online_players> {
    - yaml id:ONLINE set:<def[value].name>.min:++
   }
   - foreach <yaml[ONLINE].read[<pl.name>.min]> == 60 {
    - yaml id:ONLINE set:<def[value].name>.min:-:60
    - yaml id:ONLINE set:<def[value].name>.hour:++
   }