Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. on damage:
  2. if attacker is player:
  3. if victim is player:
  4. if {antylogout::%victim%} is not set:
  5. send "&cJestes podczas walki! Nie logaj!" to victim
  6. set {antylogout::%victim%} to 20
  7. every 1 seconds:
  8. loop all players:
  9. if {antylogout::%loop-player%} is set:
  10. if {antylogout::%loop-player%} is greater than 0:
  11. remove 1 from {antylogout::%loop-player%}
  12. set action bar of loop-player to "&c&lAntyLogout &7&l(&4%{antylogout::%loop-player%}%"
  13. else:
  14. clear {antylogout::%loop-player%}
  15. send "&aSkonczyles walczyc." to loop-player
  16. set action bar of loop-player to "&a&lAntyLogout"
  17. on quit:
  18. if {antylogout::%player%} is set:
  19. kill player
  20. broadcast "&cGracz %player% wylogowal sie podczas walki!"
  21. on death:
  22. clear {antylogout::%victim%}
  23. on command:
  24. if {antylogout::%player%} is set:
  25. if command is not "helpop":
  26. cancel event
  27. send "&4Uzywanie komend podczas pvp jest niemozliwe. Jedynie /helpop."
  28. on rightclick on ender chest:
  29. if {antylogout::%player%} is set:
  30. cancel event
  31. send "&cPodczas walki nie mozna otwierac enderchesta!"
  32. on place:
  33. if player's y-coordinate is less than 45:
  34. if {antylogout::%player%} is set:
  35. cancel event
  36. send "&cPodczas walki nie mozna stawiac blokow ponizej 45 poziomu!"
  37. on enter region "spawn":
  38. if {walka.%player%} is true:
  39. cancel event
  40. wait 1 tick
  41. send "&bAnty-Logout &7&l>> &cNie mozesz uciec z pvp na spawn!!!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement