on death: if attacker is a player: set the death message to "&6%victim% &czostal zabity przez &6%attacker%&c." if damage was caused by falling block: set the death message to "&6%victim% &cspadl z wysokosci." if damage was caused by unknown: set the death message to "&6%victim% &cumarl." if damage was caused by fall: set the death message to "&6%victim% &cspadl z wysokosci." on hunger meter change: cancel event command /setspawn: trigger: if player is op: set {SPAWN} to location of player send "Spawn is set" command /top: trigger: set {_num} to size of {KILLS::*} loop {_num} times: loop {KILLS::*}: {_v.%loop-number%} is not set: set {_v.%loop-number%} to loop-value set {_n.%loop-number%} to loop-index loop-value is greater than {_v.%loop-number%}: set {_v.%loop-number%} to loop-value set {_n.%loop-number%} to loop-index remove {_v.%loop-number%} from {KILLS::*} loop {_num} times: loop-number is less than or equal to 15: set {_m} to "%loop-number%" loop-number is more than 19: set {_m} to loop-number {_v.%loop-number%} is more than 0: send "&c%{_m}%. &6%{_n.%loop-number%}% &a%{_v.%loop-number%}%" set {KILLS::%{_n.%loop-number%}%} to {_v.%loop-number%} {_num} is less than 15: set {_r} to {_num}+1 loop 6 - {_num} times: set {_m} to "0%{_r}%" {_r} is more than 19: set {_m} to {_r} add 1 to {_r} on first join: set {RANGA::%player%} to "N00B" wait 5 tick teleport player to {SPAWN} set player's helmet to iron helmet set player's chestplate to iron chestplate set player's leggings to iron leggings set player's boots to iron boots give diamond sword to player give bow to player give 30 arrow to player on join: if {RANGA::%player%} is not set: set {RANGA::%player%} to "N00B" wait 5 tick teleport player to {SPAWN} on respawn: wait 10 tick teleport player to {SPAWN} give diamond sword to player give bow to player give 30 arrow to player give 30 arrow to player set player's helmet to iron helmet set player's chestplate to iron chestplate set player's leggings to iron leggings set player's boots to iron boots on death: if attacker is a player: if victim is a player: add 1 to {KILLS::%attacker%} add 1 to {DEAD::%victim%} give 150 xp to attacker give 1 diamond to attacker send "&aZdobyto 1 diament" to attacker if player has permission "chestpvp.vip": add 125 to {MONEY::%attacker%} send "&6+125 &2Money" to attacker else if player has permission "chestpvp.gracz": add 75 to {MONEY::%attacker%} send "&6+75 &2Money" to attacker if "%{KILLS::%attacker%}%" is "10": set {RANGA::%attacker%} to "Nowicjusz" if "%{KILLS::%attacker%}%" is "25": set {RANGA::%attacker%} to "Amatorski" if "%{KILLS::%attacker%}%" is "50": set {RANGA::%attacker%} to "Wojownik" if "%{KILLS::%attacker%}%" is "75": set {RANGA::%attacker%} to "Żołnierz" if "%{KILLS::%attacker%}%" is "100": set {RANGA::%attacker%} to "Pro" if "%{KILLS::%attacker%}%" is "150": set {RANGA::%attacker%} to "Najlepszy" if "%{KILLS::%attacker%}%" is "200": set {RANGA::%attacker%} to "Kox" if "%{KILLS::%attacker%}%" is "250": set {RANGA::%attacker%} to "Mistrz" if "%{KILLS::%attacker%}%" is "300": set {RANGA::%attacker%} to "Bog" if "%{KILLS::%attacker%}%" is "500": set {RANGA::%attacker%} to "&kjakistext" set {_loc} to location of victim #loop all items in the victim's inventory: # if "%loop-item%" is "iron helmet" or "iron chestplate" or "iron leggings" or "iron boots": # set {_int} to 0 # else: # give loop-item to attacker #clear drops command /info: trigger: send "&6Zabojstwa: &9%{KILLS::%player%}%" send "&6Deady: &9%{DEAD::%player%}%" send "&6Kasa: &9%{MONEY::%player%}%" command /spawn: trigger: if {ARENA::%player%} is not set: set {_loc} to location of player send "&aZaczekaj 7 sekund aby pszeteleportowac na spawn" loop 7 times: wait 1 second if distance between {_loc} and player is greater than 1: send "&cPoruszyles sie!" stop teleport player to {SPAWN} on chat: cancel event if player has permission "chestpvp.admin": send "&e[&c%{RANGA::%player%}%&e] &c%player% &7-> &c%message%" to all players stop if player has permission "chestpvp.gracz": send "&e[&7%{RANGA::%player%}%&e] &7%player% &8-> &7%message%" to all players stop if player has permission "chestpvp.vip": send "&e[&6%{RANGA::%player%}%&e] &6%player% &7-> &e%message%" to all players stop if player has permission "chestpvp.pomocnik": send "&e[&b%{RANGA::%player%}%&e] &b%player% &7-> &b%message%" to all players stop every 10 minutes: send "&c&lZa 60 sekund usuwanie itemow" to all players wait 40 seconds send "&c&lZa 20 sekund usuwanie itemow" to all players wait 20 seconds loop all entities: if "%loop-entity%" is "dropped item": clear loop-entity on damage: damage cause is fall: stop command /chat []: trigger: if player is op: if arg 1 is not set: send "/chat czysc/cc" if arg 1 is "czysc" or "cc": loop 100 times: send " " to all players send "&6&lCzat zostal wyczyszczony" command /shop []: aliases: sklep trigger: if arg 1 is not set: wait 2 tick open chest with 6 rows named "SKLEP" to player wait 2 tick format slot 0 of player with 1 diamond helmet of protection 1 and unbreaking 3 named "&61000" to close then run [execute player command "shop helmet1"] format slot 1 of player with 1 diamond chestplate of protection 1 and unbreaking 3 named "&61000" to close then run [execute player command "shop chestplate1"] format slot 2 of player with 1 diamond leggings of protection 1 and unbreaking 3 named "&61000" to close then run [execute player command "shop leggings1"] format slot 3 of player with 1 diamond boots of protection 1 and unbreaking 3 named "&61000" to close then run [execute player command "shop boots1"] format slot 9 of player with 1 diamond helmet of protection 2 and unbreaking 3 named "&62000" to close then run [execute player command "shop helmet2"] format slot 10 of player with 1 diamond chestplate of protection 2 and unbreaking 3 named "&62000" to close then run [execute player command "shop chestplate2"] format slot 11 of player with 1 diamond leggings of protection 2 and unbreaking 3 named "&62000" to close then run [execute player command "shop leggings2"] format slot 12 of player with 1 diamond boots of protection 2 and unbreaking 3 named "&62000" to close then run [execute player command "shop boots2"] format slot 18 of player with 1 diamond helmet of protection 3 and unbreaking 3 named "&63000" to close then run [execute player command "shop helmet3"] format slot 19 of player with 1 diamond chestplate of protection 3 and unbreaking 3 named "&63000" to close then run [execute player command "shop chestplate3"] format slot 20 of player with 1 diamond leggings of protection 3 and unbreaking 3 named "&63000" to close then run [execute player command "shop leggings3"] format slot 21 of player with 1 diamond boots of protection 3 and unbreaking 3 named "&63000" to close then run [execute player command "shop boots3"] format slot 27 of player with 1 diamond helmet of protection 4 and unbreaking 3 named "&64000" to close then run [execute player command "shop helmet4"] format slot 28 of player with 1 diamond chestplate of protection 4 and unbreaking 3 named "&64000" to close then run [execute player command "shop chestplate4"] format slot 29 of player with 1 diamond leggings of protection 4 and unbreaking 3 named "&64000" to close then run [execute player command "shop leggings4"] format slot 30 of player with 1 diamond boots of protection 4 and unbreaking 3 named "&64000" to close then run [execute player command "shop boots4"] format slot 4 of player with 1 diamond sword of sharpness 1 named "&61500" to close then run [execute player command "shop sword1"] format slot 13 of player with 1 diamond sword of sharpness 2 named "&62000" to close then run [execute player command "shop sword2"] format slot 22 of player with 1 diamond sword of sharpness 3 named "&63000" to close then run [execute player command "shop sword3"] format slot 31 of player with 1 diamond sword of sharpness 4 named "&64000" to close then run [execute player command "shop sword4"] format slot 40 of player with 1 diamond sword of sharpness 5 named "&65000" to close then run [execute player command "shop sword5"] format slot 5 of player with 1 diamond sword of sharpness 3 and fire aspect 2 named "&64000" to close then run [execute player command "shop sword6"] format slot 14 of player with 1 diamond sword of sharpness 4 and fire aspect 2 named "&65000" to close then run [execute player command "shop sword7"] format slot 23 of player with 1 diamond sword of sharpness 5 and fire aspect 2 named "&66000" to close then run [execute player command "shop sword8"] if arg 1 is "sword1": if {MONEY::%player%} is greater or equal to 1500: subtract 1500 from {MONEY::%player%} give 1 diamond sword of sharpness 1 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "sword2": if {MONEY::%player%} is greater or equal to 2000: subtract 2000 from {MONEY::%player%} give 1 diamond sword of sharpness 2 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "sword3": if {MONEY::%player%} is greater or equal to 3000: subtract 3000 from {MONEY::%player%} give 1 diamond sword of sharpness 3 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "sword4": if {MONEY::%player%} is greater or equal to 4000: subtract 4000 from {MONEY::%player%} give 1 diamond sword of sharpness 4 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "sword5": if {MONEY::%player%} is greater or equal to 5000: subtract 5000 from {MONEY::%player%} give 1 diamond sword of sharpness 5 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "sword6": if {MONEY::%player%} is greater or equal to 4000: subtract 4000 from {MONEY::%player%} give 1 diamond sword of sharpness 3 and fire aspect 2 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "sword7": if {MONEY::%player%} is greater or equal to 5000: subtract 5000 from {MONEY::%player%} give 1 diamond sword of sharpness 4 and fire aspect 2 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "sword8": if {MONEY::%player%} is greater or equal to 6000: subtract 6000 from {MONEY::%player%} give 1 diamond sword of sharpness 5 and fire aspect 2 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "helmet1": if {MONEY::%player%} is greater or equal to 1000: subtract 1000 from {MONEY::%player%} give 1 diamond helmet of protection 1 and unbreaking 3 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "chestplate1": if {MONEY::%player%} is greater or equal to 1000: subtract 1000 from {MONEY::%player%} give 1 diamond chestplate of protection 1 and unbreaking 3 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "leggings1": if {MONEY::%player%} is greater or equal to 1000: subtract 1000 from {MONEY::%player%} give 1 diamond leggings of protection 1 and unbreaking 3 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "boots1": if {MONEY::%player%} is greater or equal to 1000: subtract 1000 from {MONEY::%player%} give 1 diamond boots of protection 1 and unbreaking 3 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "helmet2": if {MONEY::%player%} is greater or equal to 2000: subtract 2000 from {MONEY::%player%} give 1 diamond helmet of protection 2 and unbreaking 3 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "chestplate2": if {MONEY::%player%} is greater or equal to 2000: subtract 2000 from {MONEY::%player%} give 1 diamond chestplate of protection 2 and unbreaking 3 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "leggings2": if {MONEY::%player%} is greater or equal to 2000: subtract 2000 from {MONEY::%player%} give 1 diamond leggings of protection 2 and unbreaking 3 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "boots2": if {MONEY::%player%} is greater or equal to 2000: subtract 2000 from {MONEY::%player%} give 1 diamond boots of protection 2 and unbreaking 3 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "helmet3": if {MONEY::%player%} is greater or equal to 3000: subtract 3000 from {MONEY::%player%} give 1 diamond helmet of protection 3 and unbreaking 3 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "chestplate3": if {MONEY::%player%} is greater or equal to 3000: subtract 3000 from {MONEY::%player%} give 1 diamond chestplate of protection 3 and unbreaking 3 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "leggings3": if {MONEY::%player%} is greater or equal to 3000: subtract 3000 from {MONEY::%player%} give 1 diamond leggings of protection 3 and unbreaking 3 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "boots3": if {MONEY::%player%} is greater or equal to 3000: subtract 3000 from {MONEY::%player%} give 1 diamond boots of protection 3 and unbreaking 3 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "helmet4": if {MONEY::%player%} is greater or equal to 4000: subtract 4000 from {MONEY::%player%} give 1 diamond helmet of protection 4 and unbreaking 3 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "chestplate4": if {MONEY::%player%} is greater or equal to 4000: subtract 4000 from {MONEY::%player%} give 1 diamond chestplate of protection 4 and unbreaking 3 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "leggings4": if {MONEY::%player%} is greater or equal to 4000: subtract 4000 from {MONEY::%player%} give 1 diamond leggings of protection 4 and unbreaking 3 to player send "&2Poprawnie kupiles przedmiot" if arg 1 is "boots4": if {MONEY::%player%} is greater or equal to 4000: subtract 4000 from {MONEY::%player%} give 1 diamond boots of protection 4 and unbreaking 3 to player send "&2Poprawnie kupiles przedmiot"