on script load: set {customdrops.version} to "1.0" send "&9&lCustom Drops &8| &7Loading skript v%{customdrops.version}%..." to console set {_customdrops.version.web::*} to contents from url "%uncolored ""https://pastebin.com/raw/7BS83qtA""%" wait 3 ticks if yaml value "Config.notifyUpdates" from "customdrops-config" is true: if {_customdrops.version.web::1} is not {customdrops.version}: send "&9&lCustom Drops &8| &7There is a new version, download it at &7&nDC" to console on script unload: send "&9&lCustom Drops &8| &7Deleting skript files.." to console on load: if file "plugins/CustomDrops/config.yml" doesn't exist: wait 6 ticks send "&9&lCustom Drops &8| &7Creating config files...." to console load yaml "plugins/CustomDrops/config.yml" as "customdrops-config" set yaml value "Config.notifyUpdates" from "customdrops-config" to true set yaml value "Config.enabledPrefix" from "customdrops-config" to true set yaml value "Config.enabledChances" from "customdrops-config" to true set yaml value "Config.requiredPermission" from "customdrops-config" to false set yaml value "Config.dropMessage" from "customdrops-config" to true set yaml value "Config.dropMessageTitle" from "customdrops-config" to true set yaml list "Config.disabledWorlds" from "customdrops-config" to "world-1" and "world-2" set yaml list "Config.disabledMobs" from "customdrops-config" to "mob-1" and "mob-2" save yaml "customdrops-config" load yaml "plugins/CustomDrops/config.yml" as "customdrops-config" wait 4 ticks if file "plugins/CustomDrops/messages.yml" doesn't exist: wait 8 ticks send "&9&lCustom Drops &8&l| &7Creating messages files...." to console load yaml "plugins/CustomDrops/messages.yml" as "customdrops-messages" set yaml value "Messages.prefix" from "customdrops-messages" to "&9&lCD &8&l|" set yaml value "Messages.noPerm" from "customdrops-messages" to "&r &cYou don't have permissions!" set yaml value "Messages.reload" from "customdrops-messages" to "&r &aSuccesfuly reloaded skript" set yaml value "Messages.titleMessage" from "customdrops-messages" to "&fYou dropped custom item" set yaml value "Messages.dropMessage" from "customdrops-messages" to "&r &e&lLucky! &fYou dropped custom item!" set yaml value "Messages.addedItem" from "customdrops-messages" to "&r &aSuccesfuly added item!" set yaml value "Messages.alreadyAdded" from "customdrops-messages" to "&r &cThis item is already added to this mob" set yaml value "Messages.deletedItem" from "customdrops-messages" to "&r &aSuccesfuly &cdeleted &aitem" set yaml value "Messages.checkPercent" from "customdrops-messages" to "&r &f" set yaml value "Messages.setPercent" from "customdrops-messages" to "&r &aSuccesfuly setted percent"