Advertisement
Guest User

Untitled

a guest
Aug 17th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.24 KB | None | 0 0
  1. package mrjoe.ked;
  2.  
  3. import org.bukkit.Bukkit;
  4. import org.bukkit.ChatColor;
  5. import org.bukkit.Server;
  6.  
  7. public class Game
  8. {
  9.   public static String proofix = Sumo.prefix;
  10.  
  11.   private static Sumo plugin = new Sumo();
  12.  
  13.  
  14.   public static void start()
  15.   {
  16.       Bukkit.broadcastMessage(proofix + ChatColor.RED + "30 seconds to game start!");
  17.       Bukkit.getServer().getScheduler().runTaskLater(plugin, new Runnable() {
  18.          
  19.           public void run() {
  20.               Bukkit.broadcastMessage(proofix + ChatColor.RED + "20 seconds! Join now with /sumo!");
  21.           }
  22.          
  23.       }, 10000);
  24.      
  25.       Bukkit.getServer().getScheduler().runTaskLater(plugin, new Runnable() {
  26.           public void run() {
  27.               Bukkit.broadcastMessage(proofix + ChatColor.RED + "10 seconds! Use /sumo to join!");
  28.           }
  29.       }, 20000);
  30.      
  31.       Bukkit.getServer().getScheduler().runTaskLater(plugin, new Runnable() {
  32.           public void run() {
  33.               Bukkit.getServer().broadcastMessage(proofix + ChatColor.BLUE + "Entry has closed!");
  34.               Bukkit.getServer().broadcastMessage(proofix + ChatColor.RED + " Starting in 5");
  35.                 try {
  36.                   Thread.sleep(1000L);
  37.                 }
  38.                 catch (InterruptedException e) {
  39.                   e.printStackTrace();
  40.                 }
  41.                 Bukkit.getServer().broadcastMessage(proofix + ChatColor.RED + " Starting in 4");
  42.                 try {
  43.                   Thread.sleep(1000L);
  44.                 }
  45.                 catch (InterruptedException e) {
  46.                   e.printStackTrace();
  47.                 }
  48.                 Bukkit.getServer().broadcastMessage(proofix + ChatColor.RED + " Starting in 3");
  49.                 try {
  50.                   Thread.sleep(1000L);
  51.                 }
  52.                 catch (InterruptedException e) {
  53.                   e.printStackTrace();
  54.                 }
  55.                 Bukkit.getServer().broadcastMessage(proofix + ChatColor.RED + " Starting in 2");
  56.                 try {
  57.                   Thread.sleep(1000L);
  58.                 }
  59.                 catch (InterruptedException e) {
  60.                   e.printStackTrace();
  61.                 }
  62.                 Bukkit.getServer().broadcastMessage(proofix + ChatColor.RED + " Starting in 1");
  63.                 try {
  64.                   Thread.sleep(1000L);
  65.                 }
  66.                 catch (InterruptedException e) {
  67.                   e.printStackTrace();
  68.                 }
  69.                 Bukkit.getServer().broadcastMessage(proofix + ChatColor.RED + ChatColor.BOLD + " GO!");
  70.                 Sumo.game = true;
  71.           }
  72.          
  73.       }, 25000);
  74.      
  75.    
  76.   }
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement