options: version: 1.0 on script load: send "&r" to console send "&8&l| &fxCheck &8- &f_xKubus_" to console send "&8&l| &fEnabled version {@version}" to console if "{@version}" is not text from "https://code.skript.pl/R3AguebW/raw": send "&8&l| &cThere is an update! &8( &c&nv%text from ""https://code.skript.pl/R3AguebW/raw%"" &8)" to console send "&8&l| &cFor more info type /xcheck update" to console send "&r" to console else: send "&r" to console on join: if yaml value "check-updates" from "config" is true: if player has permission "*": if "{@version}" is not text from "https://code.skript.pl/R3AguebW/raw": send "&r" to player send "&8&l| &fᴛʜᴇʀᴇ ɪꜱ ᴀɴ ɴᴇᴡ ᴜᴘᴅᴀᴛᴇ ᴏꜰ xᴄʜᴇᴄᴋ!" to player send "&8&l| &fꜰᴏʀ ᴍᴏʀᴇ ɪɴꜰᴏ ᴛʏᴘᴇ /xᴄʜᴇᴄᴋ ᴜᴘᴅᴀᴛᴇ ᴄᴏᴍᴍᴀɴᴅ" to player send "&r" to player on first join: if player has permission "*": send "&r" to player send "&8&l| &fᴛʜᴀɴᴋꜱ ꜰᴏʀ ᴜꜱɪɴɢ ᴏᴜʀ ꜰᴀᴠᴏʀɪᴛᴇ ꜱᴄʀɪᴘᴛ" to player send "&r" to player on load: if yaml file "plugins/xCheck/config.yml" doesn't exist: load yaml "plugins/xCheck/config.yml" as "config" set yaml value "version" of "config" to "{@version}" set yaml value "update-checker" of "config" to true set yaml value "