Paste #40331: SQLCheck

Date: 2017/02/28 11:43:23 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10


on system time hourly:
    - define db '<s@XPCore_Configurations.yaml_key[config.MySQL.database]||null>' 
    - define yamlName 'XPCore' 
    - define scriptName '<script.name>'
    - foreach <server.list_players> {
      - define lastplayed <def[value].last_played>
      - if <util.date.time.duration.sub[<def[lastplayed]>].is[>=].than[3600]> {
        - queue clear
        }
      - inject locally s@WorldEvents p:SQLCheck