on damage: if attacker is player: if victim is player: if x-location of victim is between -70 and 70: if z-location of victim is between -70 and 70: cancel event stop if x-location of attacker is between -70 and 70: if z-location of attacker is between -70 and 70: send " &6&l» &c&l&oPVP na spawn jest OFF!" to attacker cancel event stop if {antylogout::%victim%} is not set: send "&8&l» &c&l&oNie logaj, jestes podczas walki! " to victim send "&8&l» &c&l&oNie logaj, jestes podczas walki! " to attacker set {antylogout::%victim%} to 30 set {antylogout::%attacker%} to 30 set {liniapvp.%victim%} to true set {liniapvp.%attacker%} to true if {in.combat.%victim%} is true: set {seconds.until.out.%victim%} to 30 stop set {in.combat.%victim%} to true set {seconds.until.out.%victim%} to 30 set {in.combat.%attacker%} to true set {seconds.until.out.%attacker%} to 30 set {liniapvp.%victim%} to false set {liniapvp.%attacker%} to false every 1 seconds: loop all players: if {antylogout::%loop-player%} is set: if {antylogout::%loop-player%} is greater than 0: remove 1 from {antylogout::%loop-player%} set action bar of loop-player to "&8&l» &c&l&oNie logaj! przez: &4&l&o%{antylogout::%loop-player%}% sekund" else: clear {antylogout::%loop-player%} clear {in.combat.%loop-player%} send "&a&l&oSkonczyles walke! Mozesz sie wylogowac!" to loop-player set action bar of loop-player to "&8&l» &a&l&oSkonczyles walke! Mozesz sie wylogowac!" delete {in.combat.%loop-player%} command /antyl: trigger: if {antylogout::%victim%} is not set: send "&8&l» &c&l&oNie logaj, jestes podczas walki!" to player set {antylogout::%player%} to 30 if {in.combat.%victim%} is true: set {seconds.until.out.%victim%} to 30 stop send "Dales sobie AntyLogout" on quit: if {antylogout::%player%} is set: kill player broadcast "&f&lGracz &2&l%player% &f&lwylogowal sie podczas walki!" on death: clear {antylogout::%victim%} clear {in.combat.%player%} set {in.combat.%player%} to false set {liniapvp.%player%} to false on command: {in.combat.%player%} is true if command is "hdom" or "spawn" or "sethome" or "schowek" or "home" or "tpa" or "tpaccept" or "tpyes" or "unregister" or "repair" or "feed" or "kit" or "ekits" or "kits" or "ekit" or "ec" or "enderchest": cancel event send "&6&l» &c&l&oKomenda &6&l&o/%command% &c&l&ojest zablokowane podczas pvp." to player on rightclick on ender chest: if {antylogout::%player%} is set: cancel event send "&6&l» &c&l&oPodczas walki nie mozna otwierac enderchesta!" on place: if player's y-coordinate is less than 50: if {antylogout::%player%} is set: cancel event send "&6&l» &c&o&lPodczas walki nie mozesz stawiac blokow ponizej 50 poziomu!" on enter region "spawn": if {liniapvp.%player%} is true: push the player horizontally backwards at speed 2 send "&6&l» &c&o&lNie mozesz wejsc na spawn podczas PVP!" command /luk []: trigger: push the player upwards at speed 1.0 push the player horizontally forward at speed -1