Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package mrjoe.ked;
- import org.bukkit.Bukkit;
- import org.bukkit.ChatColor;
- import org.bukkit.Server;
- public class Game
- {
- public static String proofix = Sumo.prefix;
- private static Sumo plugin = new Sumo();
- public static void start()
- {
- Bukkit.broadcastMessage(proofix + ChatColor.RED + "30 seconds to game start!");
- Bukkit.getServer().getScheduler().runTaskLater(plugin, new Runnable() {
- public void run() {
- Bukkit.broadcastMessage(proofix + ChatColor.RED + "20 seconds! Join now with /sumo!");
- }
- }, 10000);
- Bukkit.getServer().getScheduler().runTaskLater(plugin, new Runnable() {
- public void run() {
- Bukkit.broadcastMessage(proofix + ChatColor.RED + "10 seconds! Use /sumo to join!");
- }
- }, 20000);
- Bukkit.getServer().getScheduler().runTaskLater(plugin, new Runnable() {
- public void run() {
- Bukkit.getServer().broadcastMessage(proofix + ChatColor.BLUE + "Entry has closed!");
- Bukkit.getServer().broadcastMessage(proofix + ChatColor.RED + " Starting in 5");
- try {
- Thread.sleep(1000L);
- }
- catch (InterruptedException e) {
- e.printStackTrace();
- }
- Bukkit.getServer().broadcastMessage(proofix + ChatColor.RED + " Starting in 4");
- try {
- Thread.sleep(1000L);
- }
- catch (InterruptedException e) {
- e.printStackTrace();
- }
- Bukkit.getServer().broadcastMessage(proofix + ChatColor.RED + " Starting in 3");
- try {
- Thread.sleep(1000L);
- }
- catch (InterruptedException e) {
- e.printStackTrace();
- }
- Bukkit.getServer().broadcastMessage(proofix + ChatColor.RED + " Starting in 2");
- try {
- Thread.sleep(1000L);
- }
- catch (InterruptedException e) {
- e.printStackTrace();
- }
- Bukkit.getServer().broadcastMessage(proofix + ChatColor.RED + " Starting in 1");
- try {
- Thread.sleep(1000L);
- }
- catch (InterruptedException e) {
- e.printStackTrace();
- }
- Bukkit.getServer().broadcastMessage(proofix + ChatColor.RED + ChatColor.BOLD + " GO!");
- Sumo.game = true;
- }
- }, 25000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement