Advertisement
Guest User

Untitled

a guest
Jul 21st, 2014
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. variables:
  2. {arenaon} = false
  3. {arena} = 1
  4.  
  5. command /enablearena:
  6. permission: skript.op
  7. trigger:
  8. if {arenaon} is true:
  9. message "The arena is already on!"
  10. stop trigger
  11. set {arenaon} to true
  12. execute console command "y Arena Enabled"
  13.  
  14. command /disablearena:
  15. permission: skript.op
  16. trigger:
  17. if {arenaon} is false:
  18. message "The arena is already off!"
  19. stop trigger
  20. set {arenaon} to false
  21. execute console command "y Arena Disabled"
  22.  
  23. on login:
  24. {arenaon} is true
  25. execute console command "warp %player% spawn"
  26. execute console command "ci %player%"
  27. set {_inarena} to false
  28.  
  29. on death of player:
  30. {arenaon} is true
  31. {_inarena} is true
  32. set {_inarena} to false
  33.  
  34.  
  35.  
  36.  
  37. command /arena:
  38. aliases: /p, /pvp, /pjoin, /a
  39. trigger:
  40. if {arenaon} is true:
  41. if {_inarena} is false:
  42. set {_inarena} to true
  43. execute console command "heal %player%"
  44. equip player with all iron armor
  45. give an diamond sword to the player
  46. give a bow to the player
  47. give 64 arrows to the player
  48. give 64 arrows to the player
  49. execute console command "/warp pvp%random integer between 1 and 25% %player%"
  50. stop trigger
  51. message "You are already in the arena!"
  52. stop trigger
  53. message "The arena is currently disabled"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement