zeshan

Untitled

Jan 3rd, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. @SuppressWarnings("unused")
  2. public class Barraa extends BukkitRunnable {
  3.  
  4. ArrayList<String> ps = new ArrayList<String>();
  5. private int id;
  6. private Main plugin;
  7.  
  8. public Barraa(Main plugin) {
  9. this.plugin = plugin;
  10. }
  11.  
  12. public void setId(int id) {
  13. this.id = id;
  14. }
  15.  
  16. private int counter = 15;
  17. World w = Bukkit.getWorld("Arenas");
  18. World w2 = Bukkit.getWorld("ArenasItem");
  19.  
  20. @Override
  21. public void run() {
  22. final String s = new String(ChatColor.RED.toString() + ChatColor.BOLD
  23. + "Bem-Vindo ao " + ChatColor.GREEN.toString() + ChatColor.BOLD
  24. + "SuperCraft!");
  25. final String s1 = new String(ChatColor.BLUE.toString() + ChatColor.BOLD
  26. + "Estás no melhor Servidor PvP Portugues");
  27. final String s2 = new String(ChatColor.AQUA.toString() + ChatColor.BOLD
  28. + "/Comandos para veres os Comandos!");
  29. final String s3 = new String(ChatColor.DARK_GREEN.toString()
  30. + ChatColor.BOLD
  31. + "Para veres os ranks e os seus preços /ranks!");
  32. final String s4 = new String(ChatColor.GOLD.toString() + ChatColor.BOLD
  33. + "Para comprares vip vai a supercraftpt.buycraft.net!");
  34. for (Player p : Bukkit.getOnlinePlayers()) {
  35. if(counter == 15 || counter == 14 || counter == 13){
  36. BarAPI.setMessage(p, s);
  37. BarAPI.setHealth(p, 100);
  38. counter --;
  39. }
  40. if(counter == 12 || counter == 11 || counter == 10){
  41. BarAPI.setMessage(p, s1);
  42. BarAPI.setHealth(p, 75);
  43. counter --;
  44. }
  45. if(counter == 9 || counter == 8 || counter == 7){
  46. BarAPI.setMessage(p, s2);
  47. BarAPI.setHealth(p, 50);
  48. counter --;
  49. }
  50. if(counter == 6 || counter == 5 || counter == 4){
  51. BarAPI.setMessage(p, s3);
  52. BarAPI.setHealth(p, 25);
  53. counter --;
  54. }
  55. if(counter == 3 || counter == 2 || counter == 1){
  56. BarAPI.setMessage(p, s4);
  57. BarAPI.setHealth(p, 1);
  58. counter --;
  59. }
  60. if(counter == 0){
  61. counter = 15;
  62. }
  63. }
  64. }
  65. }
Advertisement
Add Comment
Please, Sign In to add comment