Advertisement
Guest User

Untitled

a guest
Jun 25th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. package server.vd.event;
  2.  
  3. import server.vd.player.Player;
  4. import server.vd.player.PlayerHandler;
  5. import server.vd.event.CycleEvent;
  6. import server.vd.event.CycleEventContainer;
  7.  
  8. public class GlobalShoutEvent extends CycleEvent {
  9.  
  10. private static String[] shouts = {
  11. "@dre@Dante @bla@& @dre@Metallic @bla@are the Owners of Razanpscape.",
  12.  
  13. "Please report all bugs on our website; @dre@http://www.Razanscape.com",
  14.  
  15. "Our website is located at @dre@http://www.Razanscape.com",
  16.  
  17. "Vote every 12 hours for extra rewards using @dre@::vote",
  18.  
  19. "Razanscape tokens are for sale at @dre@::store",
  20.  
  21. "Our Highscores are loacted at @dre@::highscores",
  22.  
  23. "Have an interesting idea? Tell us about it on our forums!",
  24.  
  25. "The Razanscape support team are recognised with a crown",
  26.  
  27. "Having issues with your account? Contact the support team!"
  28.  
  29. };
  30.  
  31. @Override
  32. public void execute(CycleEventContainer container) {
  33. for (int index = 0; index < PlayerHandler.players.length; index++) {
  34. if (PlayerHandler.players[index] == null) {
  35. continue;
  36. }
  37. Player players = (Player) PlayerHandler.players[index];
  38.  
  39. players.sendMessage("@dre@[Global]@bla@"
  40. + shouts[(int) (Math.random() * shouts.length)]);
  41. }
  42. }
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement