SPIGOT-5913: MOTD no longer supports new line character

This commit is contained in:
md_5 2020-07-01 14:00:02 +10:00
parent b8b65eb744
commit 008f039f37
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -102,7 +102,7 @@
+
+ ServerPing ping = new ServerPing();
+ ping.setFavicon(event.icon.value);
+ ping.setMOTD(CraftChatMessage.fromString(event.getMotd())[0]);
+ ping.setMOTD(CraftChatMessage.fromString(event.getMotd(), true)[0]);
+ ping.setPlayerSample(playerSample);
+ int version = SharedConstants.getGameVersion().getProtocolVersion();
+ ping.setServerInfo(new ServerPing.ServerData(minecraftServer.getServerModName() + " " + minecraftServer.getVersion(), version));