on load: if file "plugins/UltimateDuels/config.yml" doesn't exist: wait 4 ticks send "&d&lUD &8» &7Creating files..." to console load yaml "plugins/UltimateDuels/config.yml" as "config" set yaml value "notify-updates" from "config" to true set yaml value "version" from "config" to 1.0 set yaml value "request.requires-clear-inventory" from "config" to false set yaml value "request.prevent-creative-mode" from "config" to true set yaml value "request.kit-selecting" from "config" to true set yaml value "request.arena-selecting" from "config" to true set yaml value "request.betting.item" from "config" to false set yaml value "request.betting.money" from "config" to true set yaml value "request.cooldown" from "config" to false set yaml value "request.cancel-on-move" from "config" to false set yaml value "request.expiration" from "config" to 30 set yaml value "duel.max-duration" from "config" to 600 set yaml value "duel.start-command" from "config" to false set yaml list "duel.start-command.commands" from "config" to "my command 1" and "my command 2" set yaml value "duel.end-command" from "config" to false set yaml list "duel.end-command.commands" from "config" to "my command 1" and "my command 2" set yaml value "duel.projectile-hit-message" from "config" to true set yaml list "duel.projectile-hit-message.projectiles" from "config" to "arrow" and "snowball" and "triden" and "tipped arrow" and "spectral arrow" set yaml value "duel.remove-empty-bottles" from "config" to true set yaml value "duel.prevent-teleports-to-match-players" from "config" to true set yaml value "duel.attack-teamates" from "config" to false set yaml list "duel.blacklisted-worlds" from "config" to "world 1" and "world 2" set yaml value "duel.teleport-to-last-location" from "config" to false set yaml value "duel.teleport-delay" from "config" to 5 set yaml value "duel.winner-firework" from "config" to true set yaml value "duel.arena-only-end-message" from "config" to true set yaml value "duel.display-inventories" from "config" to true set yaml value "duel.prevent-item-drop" from "config" to false set yaml value "duel.prevent-item-pickup" from "config" to false set yaml value "duel.block-all-commands" from "config" to true set yaml list "duel.allowed-commands" from "config" to "msg" and "r" and "surrender" set yaml value "rating" from "config" to true set yaml value "rating.default" from "config" to 1000 set yaml value "spectate" from "config" to true set yaml value "spectate.requires-cleared-inventory" from "config" to false set yaml value "spectate.use-spectator-gamemode" from "config" to false set yaml value "spectate.add-invisibility-effect" from "config" to true set yaml value "countdown" from "config" to true set yaml value "countdown.prevent.movement" from "config" to true set yaml value "countdown.prevent.projectile-launch" from "config" to true set yaml value "countdown.prevent.pvp" from "config" to true set yaml value "countdown.prevent.eating" from "config" to false set yaml value "stats.display-kit-ratings" from "config" to true set yaml value "stats.matches-to-display" from "config" to 5 set yaml value "top.update-interval" from "config" to 5 set yaml value "top.losses" from "config" to true set yaml value "top.wins" from "config" to true set yaml value "top.kits" from "config" to true set yaml value "soup.hearths-to-regen" from "config" to 3.5 set yaml value "soup.remove-empty-bowl" from "config" to true set yaml value "soup.cancel-if-full" from "config" to true set yaml value "sounds.countdown-sounds.type" from "config" to "entity.player.levelup" set yaml value "sounds.countdown-sounds.volume" from "config" to 1.0 set yaml value "sounds.countdown-sounds.pitch" from "config" to 0.95 set yaml value "sounds.start.type" from "config" to "item.trident.hit" set yaml value "sounds.start.volume" from "config" to 1.0 set yaml value "sounds.start.pitch" from "config" to 0.95 set yaml value "sounds.win.type" from "config" to "block.note_block.pling" set yaml value "sounds.win.volume" from "config" to 1.0 set yaml value "sounds.win.pitch" from "config" to 0.95 set yaml value "sounds.lose.type" from "config" to "entity.ghast.shoot" set yaml value "sounds.lose.volume" from "config" to 1.0 set yaml value "sounds.lose.pitch" from "config" to 0.95 if file "plugins/UltimateDuels/messages.yml" doesn't exist: wait 4 ticks load yaml "plugins/UltimateDuels/messages.yml" as "messages" set yaml value "version" from "messages" to 1.0 set yaml value "strings.prefix" from "messages" to "&d&lDuels" set yaml value "strings.prefix-character" from "messages" to "&8»" set yaml value "strings.full-line" from "messages" to "&8&m- -" set yaml value "strings.empty-line" from "messages" to "&7" set yaml value "strings.fail-prefix" from "messages" to "&cFailed to start the match:" set yaml value "general.true" from "messages" to "&aTrue" set yaml value "general.false" from "messages" to "&cFalse" set yaml value "general.enabled" from "messages" to "&aEnabled" set yaml value "general.disabled" from "messages" to "&cDisabled" set yaml value "general.not-selected" from "messages" to "&7Not Selected" set yaml value "general.random" from "messages" to "&7Random" set yaml value "general.none" from "messages" to "&7None" set yaml value "error.no-permission" from "messages" to "%prefix% %character% &cYou don't have permissions" set yaml value "error.stats.no-loaded" from "messages" to "%prefix% %character% &f%player%&c's stats don't exist" set yaml value "error.top.no-data-avaible" from "messages" to "%prefix% %character% &cThere was no data avaible" set yaml value "error.player.not-found" from "messages" to "%prefix% %character% &cPlayer &f%player% &cnot found" set yaml value "error.player.not-online" from "messages" to "%prefix% %character% &cPlayer &f%player% &cis not online" set yaml value "error.arena.not-found" from "messages" to "%prefix% %character% &cArena &f%arena% not found" set yaml value "error.arena.already-exist" from "messages" to "%prefix% %character% &cArena with this name already exist" set yaml value "error.arena.cant-deleted" from "messages" to "%prefix% %character% &cCan't delete arena that is currently in use. Disable it using &4&l/duel toggle %arena%" set yaml value "error.arena.invalid-position" from "messages" to "%prefix% %character% &cPosition must be 1 or 2" set yaml value "error.arena.no-position-set" from "messages" to "%prefix% %character% &cThis arena have no position's set" set yaml value "error.kit.not-found" from "messages" to "%prefix% %character% &cKit &f%kit% &cnot found" set yaml value "error.kit.already-exist" from "messages" to "%prefix% %character% &cKit with name &f%kit% &calready exist" set yaml value "error.kit.empty-inventory" from "messages" to "%prefix% %character% &cTo create kit you must have at least 1 item in your inventory" set yaml value "error.duel.self" from "messages" to "%prefix% %character% &cYou cannot duel yourself" set yaml value "error.duel.inventory-not-empty" from "messages" to "%prefix% %character% &cYou must have empty inventory" set yaml value "error.duel.in-blacklisted-world" from "messages" to "%prefix% %character% &cYou can't duel in this world" set yaml value "error.duel.requests-diabled" from "messages" to "%prefix% %character% &cThis player have disabled duel requests" set yaml value "error.duel.already-has-request" from "messages" to "%prefix% %character% &cYou already send request to this player" set yaml value "error.duel.no-request" from "messages" to "%prefix% %character% &cYou don't have request from &f%name%" set yaml value "error.duel.in-match" from "messages" to "%prefix% %character% &cYou cannot duel when you or opponent is in duel" set yaml value "error.duel.already-in-queue" from "messages" to "%prefix% %character% &cYou cannot do this while queue" set yaml value "error.duel.prevent-teleportaton" from "messages" to "%prefix% %character% &cYou cannot teleport to player in duel" set yaml value "error.duel.mode-unselected" from "messages" to "%prefix% %character% &cYou must choose mode before duel" set yaml value "error.duel.mode-not-allowed" from "messages" to "%prefix% %character% &cYou are not allowed to change this" set yaml value "error.