on load: if file "plugin/Skript/scripts/KitPvP/config.yml" doesn't exists: create file "plugin/Skript/scripts/KitPvP/config.yml" create file "plugin/Skript/scripts/KitPvP/kits/FILE.txt" set yaml value "Prefix" from file "plugin/Skript/scripts/KitPvP/config.yml" to "§8[§4KitPvP§8]" set yaml value "Chest-Name" from file "plugin/Skript/scripts/KitPvP/config.yml" to "§eZestawy" set yaml value "Soup-HP" from file "plugin/Skript/scripts/KitPvP/config.yml" to "4" download file "https://pastebin.pl/view/raw/c38d2b7a" to file "plugin/Skript/scripts/KitPvP/kits/FILE.txt" set {Prefix} to yaml value "Prefix" from file "plugin/Skript/scripts/KitPvP/config.yml" set {ChestName} to yaml value "Chest-Name" from file "plugin/Skript/scripts/KitPvP/config.yml" set {SoupHP} to yaml value "Soup-HP" from file "plugin/Skript/scripts/KitPvP/config.yml" set {SoupHP} to {SoupHP} parsed as number on death of player: clear drops force respawn player on join: Equipment(player); on respawn: Equipment(player); command /kitpvp []: aliases: kp, kitbattle, kb trigger: if arg is "help": send "{Prefix} &aDostepne komendy:" send "{Prefix} &b/kitpvp help &7- &aLista komend" send "{Prefix} &b/kitpvp soup &7- &aOtrzymaj zupy" stop if arg is "soup": open virtual chest with 3 rows named "&cDarmowe zupy" to player wait 0.1 tick loop 27 times: make gui slot loop-value of player with soup named "&aZupa Regenerujaca &7(PPM)" to close then run function Soup(player) stop else: send "{Prefix} &aWpisz /kitpvp help" stop on place: if event-block is chest named "%{ChestName}%": cancel event on rightclick: if name of player's tool is "%{ChestName}%": open virtual chest with 3 rows named "%{ChestName}%" to player wait 0.1 tick format gui slot 9 of player with fishing rod named "&aRybak" with lore "&7Potrafisz zlowic przeciwnika!" to close then run function Rybak(player) with left click format gui slot 9 of player with fishing rod named "&aRybak" with lore "&7Potrafisz zlowic przeciwnika!" to close then run function RybakInventory(player) with right click format gui slot 10 of player with iron sword named "&aTank" with lore "&7Stan sie czolgiem!||&7Posiadasz bardzo mocne uzbrojenie,||&7ale jestes bardzo wolny!" to close then run function Tank(player) with left click format gui slot 10 of player with iron sword named "&aTank" with lore "&7Stan sie czolgiem!||&7Posiadasz bardzo mocne uzbrojenie,||&7ale jestes bardzo wolny!" to close then run function TankInventory(player) with right click format gui slot 11 of player with rotten flesh named "&aZombie" with lore "&7Posiadasz x2 wiecej zycia!" to close then run function Zombie(player) with left click format gui slot 11 of player with rotten flesh named "&aZombie" with lore "&7Posiadasz x2 wiecej zycia!" to close then run function ZombieInventory(player) with right click format gui slot 12 of player with stone pickaxe named "&aGornik" with lore "&7Jako gornik posiadasz mocny kilof" to close then run function Gornik(player) with left click format gui slot 12 of player with stone pickaxe named "&aGornik" with lore "&7Jako gornik posiadasz mocny kilof" to close then run function GornikInventory(player) with right click format gui slot 13 of player with bow named "&aStrzelec" with lore "&7Jestes jednym z lepszych strzelcow w okolicy||&7Posiadasz bardzo mocny luk, lecz slabe uzbrojenie" to close then run function Strzelec(player) with left click format gui slot 13 of player with bow named "&aStrzelec" with lore "&7Jestes jednym z lepszych strzelcow w okolicy||&7Posiadasz bardzo mocny luk, lecz slabe uzbrojenie" to close then run function StrzelecInventory(player) with right click format gui slot 14 of player with bottle of enchanting named "&aCzarodziej" with lore "&7Jestes czarodziejem, rzucasz zaklecia na swe ofiary!" to close then run function Czarodziej(player) with left click format gui slot 14 of player with bottle of enchanting named "&aCzarodziej" with lore "&7Jestes czarodziejem, rzucasz zaklecia na swe ofiary!" to close then run function CzarodziejInventory(player) with right click format gui slot 15 of player with iron axe named "&aViking" with lore "&7Posiadasz podstawowy zestaw Vikinga!" to close then run function Viking(player) with left click format gui slot 15 of player with iron axe named "&aViking" with lore "&7Posiadasz podstawowy zestaw Vikinga!" to close then run function VikingInventory(player) with right click format gui slot 16 of player with flint and steel named "&aPirotechnik" with lore "&7Jako Pirotechnik potrafisz podpalic przeciwnikow!" to close then run function Pirotechnik(player) with left click format gui slot 16 of player with flint and steel named "&aPirotechnik" with lore "&7Jako Pirotechnik potrafisz podpalic przeciwnikow!" to close then run function PirotechnikInventory(player) with right click format gui slot 17 of player with redstone torch named "&aHardcore" with lore "&7Posiadasz bardzo slabe uzbrojenie" to close then run function Hardcore(player) with left click format gui slot 17 of player with redstone torch named "&aHardcore" with lore "&7Posiadasz bardzo slabe uzbrojenie" to close then run function HardcoreInventory(player) with right click if name of player's tool is "&aRzuc zaklecie": Zaklecie(player) cancel event if name of player's tool is "&aZupa Regenerujaca &7(PPM)": remove 1 soup from player's tool heal player by {SoupHP} hearts stop function Equipment(p: player): clear {_p} inventory give 1 chest named "%{ChestName}%" to {_p} function Soup(p: player): give 36 soup named "&aZupa Regenerujaca &7(PPM)" to {_p} stop function Zaklecie(p: player): send "&aRzuciles zaklecie!" to {_p} loop all players within 5 meters of {_p}: remove slowness from loop-player apply slowness to the loop-player for 10 seconds function Tank(p: player): set slot 0 of {_p} to iron sword set helmet of {_p} to diamond helmet set chestplate of {_p} to diamond chestplate set leggings of {_p} to diamond leggings set boots of {_p} to diamond boots apply slowness to {_p} for 9999999 seconds function TankInventory(p: player): open virtual hopper named "&aTank Inventory" to {_p} format gui slot 0 of {_p} with iron sword to close format gui slot 1 of {_p} with diamond helmet to close format gui slot 2 of {_p} with diamond chestplate to close format gui slot 3 of {_p} with diamond leggings to close format gui slot 4 of {_p} with diamond boots to close function Zombie(p: player): set slot 0 of {_p} to bone of sharpness 3 set helmet of {_p} to leather helmet of unbreaking 3 and protection 1 set chestplate of {_p} to leather chestplate of unbreaking 3 and protection 1 set leggings of {_p} to leather leggings of unbreaking 3 and protection 1 set boots of {_p} to leather boots of unbreaking 3 and protection 1 apply health boost 5 to {_p} for 9999999 seconds function ZombieInventory(p: player): open virtual hopper named "&aZombie Inventory" to {_p} format gui slot 0 of {_p} with bone of sharpness 3 to close format gui slot 1 of {_p} with leather helmet of unbreaking 3 and protection 1 to close format gui slot 2 of {_p} with leather chestplate of unbreaking 3 and protection 1 to close format gui slot 3 of {_p} with leather leggings of unbreaking 3 and protection 1 to close format gui slot 4 of {_p} with leather boots of unbreaking 3 and protection 1 to close function Gornik(p: player): set slot 0 of {_p} to stone pickaxe of sharpness 2 and unbreaking 2 set helmet of {_p} to diamond helmet of unbreaking 2 and protection 1 set chestplate of {_p} to leather chestplate of unbreaking 5 set leggings of {_p} to golden leggings of unbreaking 5 and protection 1 set boots of {_p} to leather boots of unbreaking 3 and protection 1 function GornikInventory(p: player): open virtual hopper named "&aGornik Inventory" to {_p} format gui slot 0 of {_p} with stone pickaxe of sharpness 2 and unbreaking 2 to close format gui slot 1 of {_p} with diamond helmet of unbreaking 2 and protection 1 to close format gui slot 2 of {_p} with leather chestplate of unbreaking 5 to close format gui slot 3 of {_p} with golden leggings of unbreaking 5 and protection 1 to close format gui slot 4 of {_p} with leather boots of unbreaking 3 and protection 1 to close function Strzelec(p: player): set slot 0 of {_p} to bow of power 2 and unbreaking 3 and infinity 1 set slot 1 of {_p} to arrow set helmet of {_p} to leather helmet of unbreaking 2 and protection 1 set chestplate of {_p} to golden chestplate of unbreaking 5 set leggings of {_p} to leather leggings of unbreaking 2 and protection 1 set boots of {_p} to leather boots of unbreaking 2 function StrzelecInventory(p: player): open virtual hopper named "&aStrzelec Inventory" to {_p} format gui slot 0 of {_p} with bow of power 2 and unbreaking 3 and infinity 1 to close format gui slot 1 of {_p} with leather helmet of unbreaking 2 and protection 1 to close format gui slot 2 of {_p} with golden chestplate of unbreaking 5 to close format gui slot 3 of {_p} with leather leggings of unbreaking 2 and protection 1 to close format gui slot 4 of {_p} with leather boots of unbreaking 2 to close function Czarodziej(p: player): set slot 0 of {_p} to stone sword of unbreaking 2 set slot 1 of {_p} to emerald named "&aRzuc zaklecie" with lore "&7Rzuc zaklecie spowolnienia na wszystkich||&7wokol 5 metrow!" set helmet of {_p} to chain helmet of unbreaking 2 set chestplate of {_p} to golden chestplate of unbreaking 2 and protection 1 set leggings of {_p} to leather leggings of unbreaking 2 and protection 1 set boots of {_p} to golden boots of unbreaking 2 function CzarodziejInventory(p: player): open virtual hopper named "&aCzarodziej Inventory" to {_p} format gui slot 0 of {_p} with stone sword of unbreaking 2 to close format gui slot 1 of {_p} with chain helmet of unbreaking 2 to close format gui slot 2 of {_p} with golden chestplate of unbreaking 2 and protection 1 to close format gui slot 3 of {_p} with leather leggings of unbreaking 2 and protection 1 to close format gui slot 4 of {_p} with golden boots of unbreaking 2 to close function Viking(p: player): set slot 0 of {_p} to iron axe of sharpness 1 set helmet of {_p} to iron helmet of unbreaking 2 and protection 1 set chestplate of {_p} to leather chestplate of unbreaking 2 and protection 1 set leggings of {_p} to golden leggings of unbreaking 2 and protection 1 set boots of {_p} to golden boots of unbreaking 2 function VikingInventory(p: player): open virtual hopper named "&aViking Inventory" to {_p} format gui slot 0 of {_p} with iron axe of sharpness 1 to close format gui slot 1 of {_p} with iron helmet of unbreaking 2 and protection 1 to close format gui slot 2 of {_p} with leather chestplate of unbreaking 2 and protection 1 to close format gui slot 3 of {_p} with golden leggings of unbreaking 2 and protection 1 to close format gui slot 4 of {_p} with golden boots of unbreaking 2 to close function Pirotechnik(p: player): set slot 0 of {_p} to iron sword of fire aspect 1 set helmet of {_p} to iron helmet of unbreaking 2 and protection 2 set chestplate of {_p} to leather chestplate of unbreaking 5 set leggings of {_p} to iron leggings of unbreaking 2 and protection 2 set boots of {_p} to leather boots of unbreaking 5 function PirotechnikInventory(p: player): open virtual hopper named "&aPirotechnik Inventory" to {_p} format gui slot 0 of {_p} with iron sword of fire aspect 1 format gui slot 1 of {_p} with iron helmet of unbreaking 2 and protection 2 format gui slot 2 of {_p} with leather chestplate of unbreaking 5 format gui slot 3 of {_p} with iron leggings of unbreaking 2 and protection 2 format gui slot 4 of {_p} with leather boots of unbreaking 5 function Rybak(p: player): set slot 0 of {_p} to iron sword to player set slot 1 of {_p} to fishing rod to player set helmet of {_p} to leather helmet set chestplate of {_p} to iron chestplate of protection 1 set leggings of {_p} to iron leggings of protection 1 set boots of {_p} to leather boots function RybakInventory(p: player): open virtual hopper named "&aRybak Inventory" to {_p} format gui slot 0 of {_p} with iron sword format gui slot 1 of {_p} with leather helmet format gui slot 2 of {_p} with iron chestplate of protection 1 format gui slot 3 of {_p} with iron leggings of protection 1 format gui slot 4 of {_p} with leather boots function Hardcore(p: player): set slot 0 of {_p} to wooden sword of unbreaking 3 to player set helmet of {_p} to leather helmet set chestplate of {_p} to leather chestplate set leggings of {_p} to leather leggings set boots of {_p} to leather boots function HardcoreInventory(p: player): open virtual hopper named "&aHardcore Inventory" to {_p} format gui slot 0 of {_p} with wooden sword of unbreaking 3 format gui slot 1 of {_p} with leather helmet format gui slot 2 of {_p} with leather chestplate format gui slot 3 of {_p} with leather leggings format gui slot 4 of {_p} with leather boots