Advertisement
Preceding

Untitled

Jun 21st, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. on command "spawn":
  2. if {combat-tag.%player%} is set:
  3. cancel event
  4. message "&cYou cannot use this command whilst in combat."
  5.  
  6. on command "espawn":
  7. if {combat-tag.%player%} is set:
  8. cancel event
  9. message "&cYou cannot use this command whilst in combat."
  10.  
  11. on command "warp":
  12. if {combat-tag.%player%} is set:
  13. cancel event
  14. message "&cYou cannot use this command whilst in combat."
  15.  
  16. on command "ewarp":
  17. if {combat-tag.%player%} is set:
  18. cancel event
  19. message "&cYou cannot use this command whilst in combat."
  20.  
  21. on command "essentials:spawn":
  22. if {combat-tag.%player%} is set:
  23. cancel event
  24. message "&cYou cannot use this command whilst in combat."
  25.  
  26. on command "essentials:espawn":
  27. if {combat-tag.%player%} is set:
  28. cancel event
  29. message "&cYou cannot use this command whilst in combat."
  30.  
  31. on command "essentials:warp":
  32. if {combat-tag.%player%} is set:
  33. cancel event
  34. message "&cYou cannot use this command whilst in combat."
  35.  
  36. on command "essentials:ewarp":
  37. if {combat-tag.%player%} is set:
  38. cancel event
  39. message "&cYou cannot use this command whilst in combat."
  40.  
  41. on command "back":
  42. if {combat-tag.%player%} is set:
  43. cancel event
  44. message "&cYou cannot use this command whilst in combat."
  45.  
  46. on command "eback":
  47. if {combat-tag.%player%} is set:
  48. cancel event
  49. message "&cYou cannot use this command whilst in combat."
  50.  
  51. on command "essentials:back":
  52. if {combat-tag.%player%} is set:
  53. cancel event
  54. message "&cYou cannot use this command whilst in combat."
  55.  
  56. on command "essentials:eback":
  57. if {combat-tag.%player%} is set:
  58. cancel event
  59. message "&cYou cannot use this command whilst in combat."
  60.  
  61. on damage:
  62. if attacker is a player:
  63. if victim is a player:
  64. set {combat-tag.%victim%} to 15
  65. set {combat-tag.%attacker%} to 15
  66.  
  67.  
  68. on region enter:
  69. if "%region%" is "Spawn":
  70. if {combat-tag.%player%} is true:
  71. cancel event
  72. message "&cYou cannot enter spawn while in combat." to player
  73.  
  74.  
  75.  
  76. every second:
  77. loop all players:
  78. if {combat-tag.%loop-player%} is set:
  79. if {combat-tag.%loop-player%} is greater than 0:
  80. remove 1 from {combat-tag.%loop-player%}
  81. else:
  82. delete {combat-tag.%loop-player%}
  83. message "&aYou are no longer in combat." to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement