Date: 2017/11/29 17:22:11 UTC-08:00
Type: Denizen Script
gpa_gpu_main:
type: world
debug: false
version: '0.2.1.1'
events:
on server start:
- ~run gpa_gpu_config
- inject locally 'events.on script reload' instantly
on script reload:
- ~webget 'https://raw.githubusercontent.com/MusicScore/Denizen-GrandPartyAddons/master/versions_list.txt' save:dscript_versions
- if <entry[dscript_versions].failed||true> {
- queue clear
}
- if <s@gpa_gpu_main.yaml_key[version]||null> == null {
- narrate '<&c>An unsupported version of GrandPartyUtilities has been detected! Consider downloading a legitimate version.'
- queue clear
}
- define v '<entry[dscript_versions].result.split[;].map_get[grandpartyutilities].split_by[:]||null>'
- define vl 'li@<def[v]>|<s@gpa_gpu_main.yaml_key[version]||null>'
- if <def[v]> != <s@gpa_gpu_main.yaml_key[version]> {
- if <def[vl].alphanumeric.last> == <def[v]> {
- narrate '<&c>Your version of GrandPartyUtilities is outdated! Most updated version is <&4><def[v]><&r><&c>.'
- queue clear
}
- narrate '<&c>Your version of GrandPartyUtilities is unsupported or the version database has not been updated yet. Please refer to the issues page for all GrandPartyAddons for support.'
}