ArtzifyHD

Combat Log

Aug 13th, 2017
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. on damage of player:
  2. set {_loc} to the location 1 meter above the victim
  3. drawDot count 5, particle "blockcrack", material redstone block, XYZ 0, 0, 0, center {_loc}, visibleRange 320, pulseDelay 0, keepFor 10 ticks
  4. if {combat.tag.%attacker%} is false:
  5. send "{@prefix}Tagged in combat for 15 seconds. Don't log out" to attacker
  6. set {combat.tag.%attacker%} to true
  7. wait 15 seconds
  8. set {combat.tag.%attacker%} to false
  9. set {combat.tag.%victim%} to false
  10. stop
  11. if {combat.tag.%victim%} is false:
  12. send "{@prefix}Tagged in combat for 15 seconds. Don't log out" to victim
  13. set {combat.tag.%victim%} to true
  14. wait 15 seconds
  15. set {combat.tag.%attacker%} to false
  16. set {combat.tag.%victim%} to false
  17.  
  18. on command:
  19. command is equal to "spawn", "back", "tpa" or "home"
  20. if {combat.tag.%player%} is true:
  21. message "{@prefix}You can't teleport while tagged in combat"
  22. cancel event
  23.  
  24. On quit:
  25. if {combat.tag.%player%} is true:
  26. kill player
  27. broadcast "{@prefix}%player% was killed for combat logging."
  28. if {consent.%player%} is true:
  29. set {consent.%player%} to false
  30. on right click holding a Sugar:
  31. make console execute command "/effect %player% speed 10 2"
  32. remove 1 sugar from the player's tool
  33. message "&aYou feel as if you are able to move more swiftly after eating that sugar!"
  34. stop
  35. on right click holding a Blaze_Powder:
  36. make console execute command "/effect %player% fire_resistance 20 1"
  37. remove 1 Blaze_Powder from the player's tool
  38. message "&cYou feel as if you are able to jump in lava and not burn to death!"
  39. stop
Advertisement
Add Comment
Please, Sign In to add comment