Netherboard icon indicating copy to clipboard operation
Netherboard copied to clipboard

2 lines won't show up

Open luduma opened this issue 5 years ago • 3 comments

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);
    }

luduma avatar May 31 '20 09:05 luduma

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

MinusKube avatar May 31 '20 14:05 MinusKube

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

titivermeesch avatar Nov 29 '20 10:11 titivermeesch

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.

MinusKube avatar Nov 29 '20 12:11 MinusKube