Guest User

Untitled

a guest
Oct 13th, 2019
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /eventworld:
  2. permission: pit.event
  3. permission message: §cYou must be admin or higher rank to use this command!
  4. trigger:
  5. broadcast "&9&lDIAMOND &eevent will start in &c5 &eseconds"
  6. wait for 1 seconds
  7. broadcast "&9&lDIAMOND &eevent will start in &c4 &eseconds"
  8. wait for 1 seconds
  9. broadcast "&9&lDIAMOND &eevent will start in &c3 &eseconds"
  10. wait for 1 seconds
  11. broadcast "&9&lDIAMOND &eevent will start in &c2 &eseconds"
  12. wait for 1 seconds
  13. broadcast "&9&lDIAMOND &eevent will start in &c1 &eseconds"
  14. wait for 1 seconds
  15. set slot 0 of player to diamond sword
  16. set slot 1 of player to fishing rod
  17. give 64 cobblestone to player
  18. set slot 3 of player to bow
  19. loop all players:
  20. set {_uuid} to %uuid of %loop-player%
  21. set {pit.%{_uuid}%.state} to "inevent"
  22. set slot 0 of loop-player to diamond sword
  23. set slot 1 of loop-player to fishing rod
  24. set slot 2 of loop-player to bow
  25. set slot 3 of loop-player to 16 golden apple
  26. wait for 1 seconds
  27. loop all players:
  28. send loop-player title "&6&lPIT EVENT!" with subtitle "&9&lDIAMOND" for 1 seconds
  29. wait for 0.2 seconds
  30. send loop-player title "&9&lPIT EVENT!" with subtitle "&9&lDIAMOND" for 3 seconds
  31. wait for 0.2 seconds
  32. send loop-player title "&6&lPIT EVENT!" with subtitle "&9&lDIAMOND" for 1 seconds
  33. wait for 0.2 seconds
  34. send loop-player title "&9&lPIT EVENT!" with subtitle "&9&lDIAMOND" for 5 seconds
  35. stop
  36. wait for 3 minutes
  37. broadcast "&eevent has ended, Thank you all for playing!"
  38. loop all players:
  39. set {_uuid} to %uuid of loop-player%
  40. set {pit.%{_uuid}%.state} to "ingame"
  41. wait for 0.5 seconds
  42. loop all players:
  43. set slot 0 of loop-player to iron sword
  44. set slot 1 of loop-player to bow
  45. set slot 2 of loop-player to air
  46. set slot 3 of loop-player to air
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. on chat:
  55. if player's world is "world":
  56. cancel event
  57. broadcast "&7%player%: &7%message%"
RAW Paste Data