Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 lines won't show up #17

Open
luduma opened this issue May 31, 2020 · 3 comments
Open

2 lines won't show up #17

luduma opened this issue May 31, 2020 · 3 comments

Comments

@luduma
Copy link

luduma commented May 31, 2020

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 luduma changed the title 2 lines won 2 lines won't show up May 31, 2020
@luduma luduma closed this as completed May 31, 2020
@luduma luduma reopened this May 31, 2020
@MinusKube
Copy link
Owner

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
Copy link

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

@MinusKube
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants