on script unload: send "&9&lUltimate Skywars &8&l| &7Unloading...." to console on script load: set {ultimateskywars.version} to "1.0" send "&9&lUltimate Skywars &8&l| &7Enabling v%{ultimateskywars::version}%" to console set {_ultimateskywars.version.web::*} to contents from url "%uncolored ""https://pastebin.com/raw/7BS83qtA""%" wait 3 ticks if yaml value "Config.notifyUpdates" from "ultimateskywars-config" is true: if {_ultimateskywars.version.web::1} is not {ultimateskywars.version}: send "&9&lUltimate Skywars &8&l| &7There is a new version, download it at &7&nDC" to console on load: if file "plugins/UltimateSkywars/config.yml" doesn't exist: wait 6 ticks send "&9&lUltimate Skywars &8&l| &7Creating config files...." to console load yaml "plugins/UltimateSkywars/config.yml" as "ultimateskywars-config" set yaml value "Config.notifyUpdates" from "ultimateskywars-config" to true set yaml value "Config.setupMode" from "ultimateskywars-config" to "MULTIARENA"