0

I am coding a 1.18 Spigot plugin in java and i want to make a line breaker. The problem is to pick the length of it. I would like to send the player a Message like: "_______________________________" but this message should be exacly the length of his chat. Bcs. when my chat is set to small then the message goes over 2 lines. Is this possible or should i just try to find a sweet spot? Help would be awesome ty

1 Answers1

0

You can't do that. This is because the size of the chat depends on the client version, the size of the Minecraft window. Here are some examples

two lines are the same length

Same line

same line