Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. options:
  2. P: &8[&cCarbonara&8]&6
  3.  
  4. command /pvparena <text>:
  5. permission: sk.op
  6. trigger:
  7. if arg-1 is not set:
  8. message "&4Error!"
  9. else if arg-1 is "on":
  10. set {arena} to true
  11. broadcast "{@P} PvP arena now enabled!"
  12. broadcast "{@P} Use /arena to join!"
  13. else if arg-1 is "off":
  14. delete {arena}
  15. broadcast "{@P} PvP arena now disabled!"
  16. loop all players:
  17. command "/spawn %loop-player%"
  18. command "/ci *"
  19.  
  20. command /arena:
  21. aliases: /a
  22. trigger:
  23. if {arena} is true:
  24. {arena::%command sender%} is not set:
  25. set {_player} to (command sender)
  26. set {arena::%command sender%} to true
  27. equip {_player} with iron helmet of unbreaking 10
  28. equip {_player} with iron chestplate of unbreaking 10
  29. equip {_player} with iron leggings of unbreaking 10
  30. equip {_player} with iron boots of unbreaking 10
  31. give {_player} iron sword of unbreaking 10
  32. give {_player} fishing rod of unbreaking 10
  33. give {_player} bow of infinity 1 and unbreaking 10
  34. give {_player} 1601 333
  35. give {_player} 1 arrow
  36. remove 1601 333 from {_player}
  37. set {_warp} to a random integer between 1 and 20
  38. execute console command "/warp arena%{_warp}% %{_player}%"
  39. message "&6You have entered the arena!"
  40. message "&4NO &6teaming!"
  41. else:
  42. message "{@P} You are already in the arena!"
  43. else:
  44. message "{@P} Arena is disabled!"
  45.  
  46. command /stats:
  47. trigger:
  48. set {_KDR} to {arena::Kills::%command sender%}/{arena::Deaths::%command sender%}
  49. message " &3%command sender%'s Stats "
  50. message "&6Kills: &c%{arena::Kills::%command sender%}%"
  51. message "&6Deaths: &c%{arena::Deaths::%command sender%}%"
  52. message "&6KDR: &c%{_KDR}%"
  53.  
  54. command /resetstats:
  55. permission: sk.op
  56. trigger:
  57. delete {arena::*}
  58. broadcast "&6All arena stats deleted by &3%command sender%"
  59.  
  60. on death of player:
  61. {arena} is true
  62. message "&6You just killed &3%victim%!" to attacker
  63. message "&6You just died to &3%attacker%!"
  64. heal attacker by 4.0 hearts
  65. add 1 to {arena::Kills::%attacker%}
  66. add 1 to {arena::Deaths::%victim%}
  67.  
  68. on connect:
  69. {arena} is true
  70. message "&6/arena &cto join the arena!"
  71. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement