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 folder "plugins/CustomDrops" doesn't exist: create folder "plugins/CustomDrops" if file "plugins/CustomDrops/config.yml" doesn't exist: create file "plugins/CustomDrops/config.yml" wf "# __ __ _ ____ __ _ " to "plugins/CustomDrops/config.yml" wf "# | \/ | __ _(_)_ __ / ___|___ _ __ / _(_) __ _ " to "plugins/CustomDrops/config.yml" wf "# | |\/| |/ _` | | '_ \ | | / _ \| '_ \| |_| |/ _` | " to "plugins/CustomDrops/config.yml" wf "# | | | | (_| | | | | | | |__| (_) | | | | _| | (_| | " to "plugins/CustomDrops/config.yml" wf "# |_| |_|\__,_|_|_| |_| \____\___/|_| |_|_| |_|\__, | " to "plugins/CustomDrops/config.yml" wf "# |___/ " to "plugins/CustomDrops/config.yml" wf "" to "plugins/CustomDrops/config.yml" wf "" to "plugins/CustomDrops/config.yml" wf "" to "plugins/CustomDrops/config.yml" wf "Notify Updates: 'true'" to "plugins/CustomDrops/config.yml" wf "#Should the script inform about new updates?" to "plugins/CustomDrops/config.yml" wf "" to "plugins/CustomDrops/config.yml" wf "Enabled Prefix: 'true'" to "plugins/CustomDrops/config.yml" wf "#Should the script have prefix before messages?" to "plugins/CustomDrops/config.yml" wf "" to "plugins/CustomDrops/config.yml" wf "Enabled Chances: 'true'" to "plugins/CustomDrops/config.yml" wf "#Should the items dropped by killing mobs have chances to drop (you can set it)?" to "plugins/CustomDrops/config.yml" wf "" to "plugins/CustomDrops/config.yml" wf "Required Permission: 'false'" to "plugins/CustomDrops/config.yml" wf "#Should the player require permission to drop the item?" to "plugins/CustomDrops/config.yml" wf "" to "plugins/CustomDrops/config.yml" wf "Drop Message: 'chat'" to "plugins/CustomDrops/config.yml" wf "#Drop message should be on chat or title? You must set it to 'chat' or 'title'!" to "plugins/CustomDrops/config.yml" wf "" to "plugins/CustomDrops/config.yml" wf "Disabled Worlds: 'nether, end'" to "plugins/CustomDrops/config.yml" wf "#Worlds in which the script will not work (It does not work on boss drops)" to "plugins/CustomDrops/config.yml" wf "" to "plugins/CustomDrops/config.yml" wf "Disabled Mobs: 'illusioner, ghast, ravager'" to "plugins/CustomDrops/config.yml" wf "#Mobs that have no drop effect" to "plugins/CustomDrops/config.yml" if file "plugins/CustomDrops/messages.yml" doesn't exist: create file "plugins/CustomDrops/messages.yml" wf "# __ __ ____ __ _ " to "plugins/CustomDrops/messages.yml" wf "# | \/ | ___ ___ ___ __ _ __ _ ___ ___ / ___|___ _ __ / _(_) __ _ " to "plugins/CustomDrops/messages.yml" wf "# | |\/| |/ _ \/ __/ __|/ _` |/ _` |/ _ \/ __| | | / _ \| '_ \| |_| |/ _` | " to "plugins/CustomDrops/messages.yml" wf "# | | | | __/\__ \__ \ (_| | (_| | __/\__ \ | |__| (_) | | | | _| | (_| | " to "plugins/CustomDrops/messages.yml" wf "# |_| |_|\___||___/___/\__,_|\__, |\___||___/ \____\___/|_| |_|_| |_|\__, | " to "plugins/CustomDrops/messages.yml" wf "# |___/ |___/ " to "plugins/CustomDrops/messages.yml" wf "" to "plugins/CustomDrops/messages.yml" wf "" to "plugins/CustomDrops/messages.yml" wf "" to "plugins/CustomDrops/messages.yml" wf "#You can use minecraft colores formatting from https://minecraft.fandom.com/en/wiki/Kody_formatowania" to "plugins/CustomDrops/messages.yml" wf "#For write in the new line insert %nl% before text in new line ( the best skript%nl%is custom drop )" to "plugins/CustomDrops/messages.yml" wf "" to "plugins/CustomDrops/messages.yml" wf "Drop message title: '&d&lCustom Drop'" to "plugins/CustomDrops/messages.yml" wf "Drop message subtitle: '&fYou dropped the custom item'" to "plugins/CustomDrops/messages.yml" wf "#Messages only when option drop message is set to 'title' in main config." to "plugins/CustomDrops/messages.yml" wf "" to "plugins/CustomDrops/messages.yml" wf "Drop message chat: '&e&lLucky guy! &fYou dropped a custom item'" to "plugins/CustomDrops/messages.yml" wf "#Message only when option drop message is set to 'chat' in main config." to "plugins/CustomDrops/messages.yml" wf "" to "plugins/CustomDrops/messages.yml" wf "Prefix: '&d&lCD &8> '" to "plugins/CustomDrops/messages.yml" wf "#Messages prefix for all messages if it is enabled in main config" to "plugins/CustomDrops/messages.yml" wf "" to "plugins/CustomDrops/messages.yml" wf "Added Item: '&aSuccesfuly added item to drop'" to "plugins/CustomDrops/messages.yml" wf "" to "plugins/CustomDrops/messages.yml" wf "Already added: '&cThis item is already added to drop'" to "plugins/CustomDrops/messages.yml" wf "" to "plugins/CustomDrops/messages.yml" wf "Deleted Item: '&aSuccesfuly deleted item from drop'" to "plugins/CustomDrops/messages.yml" wf "" to "plugins/CustomDrops/messages.yml" wf "Already deleted: '&cThis item is not added into drop'" to "plugins/CustomDrops/messages.yml" wf "" to "plugins/CustomDrops/messages.yml" wf "Chance check: '&7Chance for drop this item is: '" to "plugins/CustomDrops/messages.yml" wf "" to "plugins/CustomDrops/messages.yml" wf "Chance set: '&aSuccesfuly changed chance for drop this item'" to "plugins/CustomDrops/messages.yml" wf "" to "plugins/CustomDrops/messages.yml" wf "No permission: '&cYou don't have permission to this command'" to "plugins/CustomDrops/messages.yml" wf "" to "plugins/CustomDrops/messages.yml" wf "Reload: '&aSuccesfuly reloaded skript'" to "plugins/CustomDrops/messages.yml" wf "" to "plugins/CustomDrops/messages.yml" wf "Help message: ' &d&lCD%nl%&d&l* &7/cd additem %nl%&d&l* &7/cd remitem %nl%&d&l* &7/cd checkchance %nl%&d&l* &7/cd setchance %nl%&d&l* &7/cd help%nl%&d&l* &7/cd reload'" to "plugins/CustomDrops/messages.yml" wf "" to "plugins/CustomDrops/messages.yml" if file "plugins/CustomDrops/mobs.yml" doesn't exist: create file "plugins/CustomDrops/mobs.yml" wf "# __ __ _ ____ __ _ " to "plugins/CustomDrops/mobs.yml" wf "# | \/ | ___ | |__ ___ / ___|___ _ __ / _(_) __ _ " to "plugins/CustomDrops/mobs.yml" wf "# | |\/| |/ _ \| '_ \/ __| | | / _ \| '_ \| |_| |/ _` | " to "plugins/CustomDrops/mobs.yml" wf "# | | | | (_) | |_) \__ \ | |__| (_) | | | | _| | (_| | " to "plugins/CustomDrops/mobs.yml" wf "# |_| |_|\___/|_.__/|___/ \____\___/|_| |_|_| |_|\__, | " to "plugins/CustomDrops/mobs.yml" wf "# |___/ " to "plugins/CustomDrops/mobs.yml"