Netherboard
Netherboard copied to clipboard
2 lines won't show up
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);
}
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
So why is that? I'm having this issue as well. We should be able to do this
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.