Scoreboard still flickers?

Discussion in 'Spigot Plugin Development' started by FroZenKeyboard, May 23, 2017.

  1. My scoreboard still flickers, when i use Scoreboard teams. I think i do it right?

    Code:
    Code (Text):
                        all.getScoreboard().getTeam("line14").setPrefix(Main.getInstance().score.getString("line14").replaceAll("&", "§").replace("[players]", String.valueOf(Bukkit.getOnlinePlayers().size()).replace("[name]", all.getName())));
                        all.getScoreboard().getTeam("line13").setPrefix(Main.getInstance().score.getString("line13").replaceAll("&", "§").replace("[players]", String.valueOf(Bukkit.getOnlinePlayers().size()).replace("[name]", all.getName())));
                        all.getScoreboard().getTeam("line12").setPrefix(Main.getInstance().score.getString("line12").replaceAll("&", "§").replace("[players]", String.valueOf(Bukkit.getOnlinePlayers().size()).replace("[name]", all.getName())));
                        all.getScoreboard().getTeam("line11").setPrefix(Main.getInstance().score.getString("line11").replaceAll("&", "§").replace("[players]", String.valueOf(Bukkit.getOnlinePlayers().size()).replace("[name]", all.getName())));
                        all.getScoreboard().getTeam("line10").setPrefix(Main.getInstance().score.getString("line10").replaceAll("&", "§").replace("[players]", String.valueOf(Bukkit.getOnlinePlayers().size()).replace("[name]", all.getName())));
                        all.getScoreboard().getTeam("line9").setPrefix(Main.getInstance().score.getString("line9").replaceAll("&", "§").replace("[players]", String.valueOf(Bukkit.getOnlinePlayers().size()).replace("[name]", all.getName())));
                        all.getScoreboard().getTeam("line8").setPrefix(Main.getInstance().score.getString("line8").replaceAll("&", "§").replace("[players]", String.valueOf(Bukkit.getOnlinePlayers().size()).replace("[name]", all.getName())));
                        all.getScoreboard().getTeam("line7").setPrefix(Main.getInstance().score.getString("line7").replaceAll("&", "§").replace("[players]", String.valueOf(Bukkit.getOnlinePlayers().size()).replace("[name]", all.getName())));
                        all.getScoreboard().getTeam("line6").setPrefix(Main.getInstance().score.getString("line6").replaceAll("&", "§").replace("[players]", String.valueOf(Bukkit.getOnlinePlayers().size()).replace("[name]", all.getName())));