MinusKube / Netherboard

Scoreboard API for your Minecraft Sponge and Bukkit Plugins, supporting all versions from 1.7 to 1.19.
Apache License 2.0
77 stars 21 forks source link

2 lines won't show up #17

Open luduma opened 4 years ago

luduma commented 4 years ago

Any idea why line 7 and 5 won't show up in-game, but 1, 2, 3 & 4 show up.

   @EventHandler
    public void onjoin(PlayerJoinEvent event) {
        Player p = Bukkit.getPlayerExact(toString());

        BPlayerBoard board = Netherboard.instance().createBoard(p, "board");
        board.set("⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯", 6);
        board.set(" ",5);
        board.set(ChatColor.DARK_AQUA + "Remaining: ", 4);
        board.set(" ",3);
        board.set(ChatColor.DARK_AQUA + "Later", 2);
        board.set(ChatColor.STRIKETHROUGH + "⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯", 1);
    }
MinusKube commented 4 years ago

When you have the same text in multiple lines, only one of them is shown, here you have the same text in the lines 5 and 3

titivermeesch commented 3 years ago

So why is that? I'm having this issue as well. We should be able to do this

MinusKube commented 3 years ago

It's a Minecraft limitation, but you can append color codes at the end of lines, so they are not the same lines, but they still look similar. A future version of Netherboard will be able to add these color codes automatically, but meanwhile, you'll need to do it yourselves.