You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
Describe the bug
A clear and concise description of what the bug is.
I am trying to get the contents of a sign using WindSpigot, but it doesn't return all the contents of the line I want on the sign.
Bug on latest
Is the bug on the latest version of WindSpigot?
Yes.
To Reproduce
Steps to reproduce the behavior:
@EventHandler
public void onInteract(final PlayerInteractEvent e) {
Block b = e.getClickedBlock();
if (b.getType() == Material.WALL_SIGN || b.getType() == Material.SIGN_POST) {
Sign sign = (Sign) b.getState();
System.out.println(sign.getLine(2));
}
}
Assuming my sign looks like this:
Store
C 1
1
Cobblestone
My println is returning only "C", without printing the number that came right after the "C".
Expected behavior
A clear and concise description of what you expected to happen.
It should print ALL the contents of the sign line, which in this case would be "C 1".
Screenshots
If applicable, add screenshots to help explain your problem.
The texts already explain enough!
I would like to apologize if I did something wrong in this Issue, it's my first time opening an Issue on Github!
The text was updated successfully, but these errors were encountered:
A few weeks ago, I reported this bug. It have tried it on Paper and it doesn't happen.
This bug only occurs whenever a line has more than one color.
If the whole line is colored the same, this bug doesn't happen.
So in the example you gave, imagine the line is colored this way:
§cC §71
The output is: "§cC " (The space before the quote is there for a reason)
Describe the bug
A clear and concise description of what the bug is.
I am trying to get the contents of a sign using WindSpigot, but it doesn't return all the contents of the line I want on the sign.
Bug on latest
Is the bug on the latest version of WindSpigot?
Yes.
To Reproduce
Steps to reproduce the behavior:
Assuming my sign looks like this:
My println is returning only "C", without printing the number that came right after the "C".
Expected behavior
A clear and concise description of what you expected to happen.
It should print ALL the contents of the sign line, which in this case would be "C 1".
Screenshots
If applicable, add screenshots to help explain your problem.
The texts already explain enough!
The text was updated successfully, but these errors were encountered: