Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. public void anotherCooldownAgain() {
  2. new Thread() {
  3. @Override
  4. public void run() {
  5. try {
  6. Thread.sleep(1000);
  7. } catch (InterruptedException e) {
  8. e.printStackTrace();
  9. }
  10. for(Player players : Bukkit.getOnlinePlayers()) {
  11. if(Main.players.contains(players)){
  12. players.sendMessage(ChatColor.WHITE + "Starting sumo in 5 seconds!");
  13. players.playSound(players.getLocation(), Sound.CLICK, 2, 2);
  14. players.teleport(Main.sumoArena);
  15. }
  16. }
  17.  
  18. try {
  19. Thread.sleep(1000);
  20. } catch (InterruptedException e) {
  21. e.printStackTrace();
  22. }
  23.  
  24. for(Player players : Bukkit.getOnlinePlayers()) {
  25. if(Main.players.contains(players)){
  26. players.sendMessage(ChatColor.WHITE + "Starting sumo in 4 seconds!");
  27. players.playSound(players.getLocation(), Sound.CLICK, 2, 2);
  28. players.teleport(Main.sumoArena);
  29. }
  30. }
  31.  
  32. try {
  33. Thread.sleep(1000);
  34. } catch (InterruptedException e) {
  35. e.printStackTrace();
  36. }
  37.  
  38. for(Player players : Bukkit.getOnlinePlayers()) {
  39. if(Main.players.contains(players)){
  40. players.sendMessage(ChatColor.WHITE + "Starting sumo in 3 seconds!");
  41. players.playSound(players.getLocation(), Sound.CLICK, 2, 2);
  42. players.teleport(Main.sumoArena);
  43. }
  44. }
  45.  
  46. try {
  47. Thread.sleep(1000);
  48. } catch (InterruptedException e) {
  49. e.printStackTrace();
  50. }
  51.  
  52. for(Player players : Bukkit.getOnlinePlayers()) {
  53. if(Main.players.contains(players)){
  54. players.sendMessage(ChatColor.WHITE + "Starting sumo in 2 seconds!");
  55. players.playSound(players.getLocation(), Sound.CLICK, 2, 2);
  56. players.teleport(Main.sumoArena);
  57. }
  58. }
  59.  
  60. try {
  61. Thread.sleep(1000);
  62. } catch (InterruptedException e) {
  63. e.printStackTrace();
  64. }
  65.  
  66. for(Player players : Bukkit.getOnlinePlayers()) {
  67. if(Main.players.contains(players)){
  68. players.sendMessage(ChatColor.WHITE + "Starting sumo in 1 second!");
  69. players.playSound(players.getLocation(), Sound.CLICK, 2, 2);
  70. players.teleport(Main.sumoArena);
  71. }
  72. }
  73.  
  74. try {
  75. Thread.sleep(1000);
  76. } catch (InterruptedException e) {
  77. e.printStackTrace();
  78. }
  79.  
  80. for(Player players : Bukkit.getOnlinePlayers()) {
  81. if(Main.players.contains(players)){
  82. players.sendMessage("§aPvP is now enabled! Good Luck");
  83. players.playSound(players.getLocation(), Sound.CLICK, 2, 2);
  84. players.teleport(Main.sumoArena);
  85. }
  86. }
  87.  
  88.  
  89. }
  90.  
  91. }.start();;
  92.  
  93.  
  94. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement