on load: if file "plugins/CustomDrop/config.yml" doesn't exist: wait 4 ticks send "&d&lCD &8ยป &7Creating files..." to console load yaml "plugins/CustomDrop/config.yml" as "config" set yaml value "version" from "config" to 1.0 set yaml value "notify-updates" from "config" to true set yaml value "commands.changing" from "config" to true set yaml value "commands.changing.permission" from "config" to "customdrop.change" set yaml value "commands.information" from "config" to true set yaml value "commands.information.permission" from "config" to "customdrop.info" set yaml value "options.chances" from "config" to true set yaml value "options.commands" from "config" to true set yaml value "message.type" from "config" to "actionbar" set yaml value "drop.permission" from "config" to "customdrop.drop" set yaml list "drop.disabled-world" from "config" to "my world" and "my world 2" set yaml list "drop.disabled-mobs" from "config" to "mob" and "mob 2" set yaml value "premium" from "config" to false save yaml "config" load yaml "plugins/CustomDrop/config.yml" as "config" if file "plugins/CustomDrop/messages.yml" doesn't exist: wait 4 ticks load yaml "plugins/CustomDrop/messages.yml" as "messages" set yaml value "drop.message.actionbar" from "messages" to "&e&lYou dropped custom item" set yaml value "drop.message.title" from "messages" to "&e&lYou dropped custom item" set yaml value "drop.message.subtitle" from "messages" to "&e&lYou dropped custom item" set yaml value "drop.message.chat" from "messages" to "%prefix% &e&lLucky! &fYou dropped the custom item from %mob%" set yaml value "item.added" from "messages" to "%prefix% &aSuccesfuly added &f%item% &ato drop from &f%mob% &8&l| &aAmount: &f%amount% &aChance: &f%chance%" set yaml value "item.already-added" from "messages" to "%prefix% &cItem &4%item% &cis already added to drop from &4%mob%" set yaml value "item.deleted" from "messages" to "%prefix% &aSeccesfuly deleted &f%item% &afrom &f%mob%" set yaml value "item.already-deleted" from "messages" to "%prefix% &cItem is not added to drop from &f%mob%" set yaml value "command.drop-check" from "messages" to "%prefix% &7Drop from %mob% is &f%items%" set yaml value "command.chance-check" from "messages" to "%prefix% &7Chance to drop %item% from %mob% is &f%chance%" set yaml value "command.amount-check" from "messages" to "%prefix% &7Amount of %item% is &f%amount%" set yaml value "command.drop-change" from "messages" to "%prefix% &aSuccesfuly changed drop from %mob% to %status%" set yaml value "command.chance-set" from "messages" to "%prefix% &aSuccesfuly changed chance to %chance%" set yaml value "command.amount-set" from "messages" to "%prefix% &aSuccesfuly changed amount to %amount%" set yaml value "command.command-check" from "messages" to "%prefix% &7Command from %mob% is &f%command%" set yaml value "command.command-set" from "messages" to "%prefix% &aSeccesfuly changed command from %mob% to %command%" set yaml value "command.replace-custom" from "messages" to "%prefix% &aSuccesfuly changed replaced drop to %replaced% from %mob%" set yaml list "command.help" from "messages" to " %prefix% " and " " and "&d* &fWhen you kill mob there is" and "&d* &fa chance to drop custom items if admin" and "&d* &fset them. Command /cd check " set yaml value "messages.prefix" from "messages" to "&d&lCD &8>" set yaml list "messages.new-update" from "messages" to "%prefix% &fThere is new update relesed!" and "&fYou can download it at spigot site" save yaml "messages" load yaml "plugins/CustomDrop/messages.yml" as "messages" if file "plugins/CustomDrop/guis.yml" doesn't exist: wait 4 ticks load yaml "plugins/CustomDrop/guis.yml" as "gui" set yaml value "gui.drop-check.rows" from "gui" to 6 set yaml value "gui.drop-check.name" from "gui" to "&d&lDrop from &5&l%mob%&d:" set yaml value "gui.drop-check.fill-item" from "gui" to "gray stained glass pane" set yaml value "gui.drop-check.fill-item.name" from "gui" to " " set yaml list "gui.drop-check.fill-item.lore" from "gui" to "" and "" set yaml value "gui.drop-check.close-item" from "gui" to "barrier" set yaml value "gui.drop-check.close-item.name" from "gui" to "&c&lCLOSE" set yaml list "gui.drop-check.close-item.lore" from "gui" to "&8&l| &7Click here to close" and "&8&l| &7this menu" set yaml value "gui.drop-check.close-item.slot" from "gui" to 49 set yaml value "gui.drop-check.drop-item" from "gui" to "%item%" set yaml value "gui.drop-check.drop-item.name" from "gui" to "&d%item%" set yaml list "gui.drop-check.drop-item.lore" from "gui" to "&8&l| &7Amount&8: &d%amount%" and "&8&l| &7Chance&8: &d%chance%" save yaml "gui" load yaml "plugins/CustomDrop/guis.yml" as "gui"