Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SuppressWarnings("unused")
- public class Barraa extends BukkitRunnable {
- ArrayList<String> ps = new ArrayList<String>();
- private int id;
- private Main plugin;
- public Barraa(Main plugin) {
- this.plugin = plugin;
- }
- public void setId(int id) {
- this.id = id;
- }
- private int counter = 15;
- World w = Bukkit.getWorld("Arenas");
- World w2 = Bukkit.getWorld("ArenasItem");
- @Override
- public void run() {
- final String s = new String(ChatColor.RED.toString() + ChatColor.BOLD
- + "Bem-Vindo ao " + ChatColor.GREEN.toString() + ChatColor.BOLD
- + "SuperCraft!");
- final String s1 = new String(ChatColor.BLUE.toString() + ChatColor.BOLD
- + "Estás no melhor Servidor PvP Portugues");
- final String s2 = new String(ChatColor.AQUA.toString() + ChatColor.BOLD
- + "/Comandos para veres os Comandos!");
- final String s3 = new String(ChatColor.DARK_GREEN.toString()
- + ChatColor.BOLD
- + "Para veres os ranks e os seus preços /ranks!");
- final String s4 = new String(ChatColor.GOLD.toString() + ChatColor.BOLD
- + "Para comprares vip vai a supercraftpt.buycraft.net!");
- for (Player p : Bukkit.getOnlinePlayers()) {
- if(counter == 15 || counter == 14 || counter == 13){
- BarAPI.setMessage(p, s);
- BarAPI.setHealth(p, 100);
- counter --;
- }
- if(counter == 12 || counter == 11 || counter == 10){
- BarAPI.setMessage(p, s1);
- BarAPI.setHealth(p, 75);
- counter --;
- }
- if(counter == 9 || counter == 8 || counter == 7){
- BarAPI.setMessage(p, s2);
- BarAPI.setHealth(p, 50);
- counter --;
- }
- if(counter == 6 || counter == 5 || counter == 4){
- BarAPI.setMessage(p, s3);
- BarAPI.setHealth(p, 25);
- counter --;
- }
- if(counter == 3 || counter == 2 || counter == 1){
- BarAPI.setMessage(p, s4);
- BarAPI.setHealth(p, 1);
- counter --;
- }
- if(counter == 0){
- counter = 15;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment