on script load: if folder "plugins/PVPKits" doesn't exists: create folder "plugins/PVPKits" if file "plugins/PVPKits/Message.yml" doesn't exists: create file "plugins/PVPKits" set yaml value "AntyLogOut1" from file "plugins/PVPKits/Message.yml" to "&6[&4AntyLogOut&4] &aJestes w trakcie walki, nie wychodz z gry!" set {AntyLogOut1} to yaml value "AntyLogOut1" from file "plugins/PVPKits/Message.yml" set yaml value "AntyLogOut2" from file "plugins/PVPKits/Message.yml" to "&6[&4AntyLogOut&4] &aJuz nie jestes w trakcie walki, mozesz sie wylogowac" set {AntyLogOut2} to yaml value "AntyLogOut2" from file "plugins/PVPKits/Message.yaml" set yaml value "Kit-PvP" from file "plugins/PVPKits/Message.yml" to "&8>>> &6Wybrales kit PVP" set {Kit-PvP} to yaml value "Kit-PvP" from file "plugins/PVPKits/Message.yaml" set yaml value "Kit-Druid" from file "plugins/PVPKits/Message.yml" to "&8>>> &6Wybrales kit Druid" set {Kit-Druid} to yaml value "Kit-Druid" from file "plugins/PVPKits/Message.yaml" set yaml value "Kit-VIP" from file "plugins/PVPKits/Message.yml" to "&8>>> &6Wybrales kit VIP" set {Kit-VIP} to yaml value "Kit-VIP" from file "plugins/PVPKits/Message.yaml" variables: {antylogout.%player%} = 0 on damage of player: if victim is player: set {antylogout.%victim%} to 1 set {antylogout.%attacker%} to 1 send "%{AntyLogOut1}%" wait 20 seconds set {antylogout.%victim%} to 0 set {antylogout.%attacker%} to 0 send "%{AntyLogOut2}%" stop on quit: if {antylogout.%player%} is 1: kill player stop command /kit []: trigger: if arg is "pvp": send "%{Kit-PvP}%" give 1 iron sword named "&aPVP" to player give 1 iron helmet named "&aPVP" to player give 1 iron chestplate named "&aPVP" to player give 1 iron leggings named "&aPVP" to player give 1 iron boots named "&aPVP" to player give 1 golden apple named "&aZlote Jablko" to player give 3 soup named "&aZupa" to player stop if arg is "druid": send "%{Kit-Druid}%" give 1 iron sword of sharpness 1 to player give 1 iron helmet to player give 1 iron chestplate to player give 1 iron leggings to player give 1 iron boots to player give 20 soup named "&aZupa" to player apply slowness 1 to the player for 9999 seconds stop if arg is "vip": if player has permission "use.vip": send "%{Kit-VIP}%" give 1 iron sword of unbreaking 1 and sharpness 1 named "&eVIP" to player give 1 iron helmet of unbreaking 1 and sharpness 1 named "&eVIP" to player give 1 iron chestplate of unbreaking 1 and sharpness 1 named "&eVIP" to player give 1 iron leggings of unbreaking 1 and sharpness 1 named "&eVIP" to player give 1 iron boots of unbreaking 1 and sharpness 1 named "&eVIP" to player give 3 golden apple named "&aZlote Jablko" to player give 6 soup named "&aZupa" to player stop on consume: if name of player's tool is "&aZupa": apply regeneration 2 to the player for 4 seconds stop if name of player's tool is "&aZlote Jablko": apply resistance 1 to the player for 5 seconds apply regeneration 2 to the player for 8 seconds apply speed 1 to the player for 5 seconds stop command /version: trigger: send "&6=======[&4Version&6]========" send "&4AntyLogOut - &aVersion &c0.0.1" send "&4PvPKits - &aVersion &c0.4" send "&6=======[&4Version&6]========" command /pvpchangelog: trigger: send "&6==========[&4ChangeLog&6]==========" send "&4PvPKits - &aVersion &c0.1" send "&a1. Publikacja skryptu" send "&4AntyLogOut - &aVersion &c0.0.1" send "&a1. Publikacja skryptu" send "&4PvPKits - &aVersion &c0.2" send "&a1. Dodano nowy kit Druid" send "&a2. Optymalizacja skryptu" send "&4PvPKits - &aVersion &c0.3" send "&a1. Dodano ustawianie spawnu!" send "&a2. Wszystkie komendy tego skryptu mozna sprawdzic pod komenda /pk info" send "&4PvPKits - &aVersion &c0.4" send "&a1. Usunieto ustawianie jak i przenoszenie sie na spawn" send "&a2. Konfiguracja wiadomosci w YML!" send "&6==========[&4ChangeLog&6]==========" command /pk []: trigger: if arg is not set: if player doesn't have permission "pk.admin": send "&6=======[&3Info&6]=======" send "&a/pk kits" send "&6=======[&3Info&6]=======" if arg is "kits": open chest with 1 rows named "&6&lPVPKITS" to player format slot 0 of player with 1 of white glass pane named "" to be unstealable format slot 1 of player with 1 of white glass pane named "" to be unstealable format slot 2 of player with 1 of white glass pane named "" to be unstealable format slot 3 of player with 1 of stone sword named "&aPVP" to close then run [make player execute "kit pvp"] format slot 4 of player with 1 of soup named "&aDruid" to close then run [make player execute "kit druid"] format slot 5 of player with 1 of iron sword named "&eVIP" to close then run [make player execute "kit vip"] format slot 6 of player with 1 of white glass pane named "" to be unstealable format slot 7 of player with 1 of white glass pane named "" to be unstealable format slot 8 of player with 1 of white glass pane named "" to be unstealable