Closed mrfloris closed 3 years ago
Looks like they broke parsing of \n
(new lines) inside the player hover message :(
Try setting
Samples:
Multiple: false
to true
, that might help.
Eeeeyh that fixed it it's false on 1.15.2 and works there, interesting! glad this resolved it. Another plugin running on 1.16.1 ;)
Should probably change the default at some point, since this affects everyone on 1.16. PRs welcome.
I would like to know what would be the solution to fixing this in your own plugin, as I face this issue in my BungeeCord plugin and can't really figure out how to fix this.
Edit: Found the solution.
For anyone that is curious, this may fix your issue (BungeeCord):
List<String> list = // Get the lines
ServerPing.PlayerInfo[] sample = new ServerPing.PlayerInfo[list.size()];
for(int i = 0; i < sample.length(); i++)
sample[i] = new ServerInfo.PlayerInfo(list.get(i), "0-0-0-0-0");
// assume event is an instance of the ProxyPingEvent
event.getPlayers().setSample(sample);
Well.. on plugin version 3.4.8 (and even on 3.5.0) it is like this https://imgur.com/a/hbJ8753 Config: https://imgur.com/a/TDTk6fH
EDIT: Alright. This helped.
Looks like they broke parsing of
\n
(new lines) inside the player hover message :(Try setting
Samples: Multiple: false
to
true
, that might help.
ServerListPlus.yml.zip Spigot 1.16.1 ProtocolLib ServerListPlus.mp4.zip
Using the 1.16.1 build of protocollib, and latest jenkins of serverlistplus as well. The hoverover shows strange, all on one line.