Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void anotherCooldownAgain() {
- new Thread() {
- @Override
- public void run() {
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- for(Player players : Bukkit.getOnlinePlayers()) {
- if(Main.players.contains(players)){
- players.sendMessage(ChatColor.WHITE + "Starting sumo in 5 seconds!");
- players.playSound(players.getLocation(), Sound.CLICK, 2, 2);
- players.teleport(Main.sumoArena);
- }
- }
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- for(Player players : Bukkit.getOnlinePlayers()) {
- if(Main.players.contains(players)){
- players.sendMessage(ChatColor.WHITE + "Starting sumo in 4 seconds!");
- players.playSound(players.getLocation(), Sound.CLICK, 2, 2);
- players.teleport(Main.sumoArena);
- }
- }
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- for(Player players : Bukkit.getOnlinePlayers()) {
- if(Main.players.contains(players)){
- players.sendMessage(ChatColor.WHITE + "Starting sumo in 3 seconds!");
- players.playSound(players.getLocation(), Sound.CLICK, 2, 2);
- players.teleport(Main.sumoArena);
- }
- }
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- for(Player players : Bukkit.getOnlinePlayers()) {
- if(Main.players.contains(players)){
- players.sendMessage(ChatColor.WHITE + "Starting sumo in 2 seconds!");
- players.playSound(players.getLocation(), Sound.CLICK, 2, 2);
- players.teleport(Main.sumoArena);
- }
- }
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- for(Player players : Bukkit.getOnlinePlayers()) {
- if(Main.players.contains(players)){
- players.sendMessage(ChatColor.WHITE + "Starting sumo in 1 second!");
- players.playSound(players.getLocation(), Sound.CLICK, 2, 2);
- players.teleport(Main.sumoArena);
- }
- }
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- for(Player players : Bukkit.getOnlinePlayers()) {
- if(Main.players.contains(players)){
- players.sendMessage("§aPvP is now enabled! Good Luck");
- players.playSound(players.getLocation(), Sound.CLICK, 2, 2);
- players.teleport(Main.sumoArena);
- }
- }
- }
- }.start();;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement