on damage of player: if attacker is player: if attacker don't have permission "csos.nodamage": if {blokada::%victim%} is not set: send "&7» &4Jestes podczas PVP. Nie wylogowywuj sie.!" to victim set {blokada::%victim%} to 25 every 1 second: loop {blokada::*}: If {blokada::%loop-index%} is 0: clear {blokada::%loop-index%} set {_player} to "%loop-index%" set {_player} to {_player} parsed as player send "&7» &aNie jestes juz podczas PVP. Mozesz sie wylogowac." to {_player} stop remove 1 from {blokada::%loop-index%} command /logout: trigger: If {blokada::%player%} is not set: send "&7» &aNie jestes juz podczas PVP." to player stop If {blokada::%player%} is set: If {blokada::%player%} is 0: clear {blokada::%player%} send "&7» &aNie jestes juz podczas PVP. Mozesz sie wylogowac." to player stop else: send "&7» &4Jestes podczas PVP %{blokada::%player%}% sek!!" to player stop on command: If {blokada::%player%} is set: if command is "hdom" or "spawn" or "home" or "tpa" or "tpaccept" or "tpyes" or "unregister" or "repair" or "feed" or "kit": cancel event send "&aCraft&fScore&7.pl &4/%command% jest zablokowana podczas PVP." to player on rightclick on ender chest: if {blokada::%player%} is set: cancel event send "&aCraft&fScore&7.pl &4Enderchesta nie mozna otwierac podczas PVP." to player on command: if {blokada::%player%} is set: if command is "enderchest" or "ec": cancel event send "&aCraft&fScore&7.pl &4Enderchesta nie mozna otwierac podczas PVP." to player on quit: if {blokada::%player%} is set: execute console command "/slay %player%" broadcast "&7» &cGracz %player% wylogowal sie podczas PVP." teleport player to {spawn.spawn.spawn} clear {blokada::%player%} on death of player: wait 2 ticks clear {blokada::%player%}