Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package server.vd.event;
- import server.vd.player.Player;
- import server.vd.player.PlayerHandler;
- import server.vd.event.CycleEvent;
- import server.vd.event.CycleEventContainer;
- public class GlobalShoutEvent extends CycleEvent {
- private static String[] shouts = {
- "@dre@Dante @bla@& @dre@Metallic @bla@are the Owners of Razanpscape.",
- "Please report all bugs on our website; @dre@http://www.Razanscape.com",
- "Our website is located at @dre@http://www.Razanscape.com",
- "Vote every 12 hours for extra rewards using @dre@::vote",
- "Razanscape tokens are for sale at @dre@::store",
- "Our Highscores are loacted at @dre@::highscores",
- "Have an interesting idea? Tell us about it on our forums!",
- "The Razanscape support team are recognised with a crown",
- "Having issues with your account? Contact the support team!"
- };
- @Override
- public void execute(CycleEventContainer container) {
- for (int index = 0; index < PlayerHandler.players.length; index++) {
- if (PlayerHandler.players[index] == null) {
- continue;
- }
- Player players = (Player) PlayerHandler.players[index];
- players.sendMessage("@dre@[Global]@bla@"
- + shouts[(int) (Math.random() * shouts.length)]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement