Advertisement
Guest User

Simple Arena - Metridium

a guest
Jun 30th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. options:
  2. P: &8[&9Arena&8]
  3. C: &f
  4. H: &e
  5.  
  6. command /arena [<text=join>]:
  7. aliases: /a
  8. trigger:
  9. if arg-1 is "enable" or "on":
  10. if command sender does not have permission "arena.enable":
  11. message "{@P}{@C} No permission."
  12. stop
  13. set {arena} to true
  14. broadcast "{@P}{@C} Arena{@H} enabled{@C}!"
  15. else if arg-1 is "disable" or "off":
  16. if command sender does not have permission "arena.disable":
  17. message "{@P}{@C} No permission."
  18. stop
  19. set {arena} to false
  20. broadcast "{@P}{@C} Arena{@H} disabled{@C}!"
  21. loop all players:
  22. heal the loop-player
  23. clear inventory of loop-player
  24. command "/spawn %loop-player%"
  25. else if arg-1 is "join":
  26. if {arena} is false:
  27. message "{@P}{@C} Arena is disabled!"
  28. stop
  29. else if {arena::%player%} is true:
  30. message "{@P}{@C} You are already in the arena!"
  31. stop
  32. set {arena::%player%} to true
  33. equip player with iron helmet of unbreaking 10
  34. equip player with iron chestplate of unbreaking 10
  35. equip player with iron leggings of unbreaking 10
  36. equip player with iron boots of unbreaking 10
  37. give player iron sword of unbreaking 10
  38. give player fishing rod of unbreaking 10
  39. give player bow of infinity 1 and unbreaking 10
  40. give player golden apple
  41. give player arrow
  42. message "{@P}{@C} You have entered the arena!"
  43. message "{@P}{@C} Teaming is not allowed."
  44.  
  45. on death of player:
  46. {arena} is true
  47. clear drops
  48. message "{@P}{@C} You killed{@H} %victim%{@C}!" to attacker
  49. message "{@P}{@C} You died to{@H} %attacker%{@C}!" to victim
  50. drop golden apple
  51. delete {arena::%victim%}
  52.  
  53. on hunger meter change:
  54. {arena} is true
  55. cancel the event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement