mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-28 21:47:55 +01:00
SPIGOT-5913: MOTD no longer supports new line character
This commit is contained in:
parent
b8b65eb744
commit
008f039f37
@ -102,7 +102,7 @@
|
|||||||
+
|
+
|
||||||
+ ServerPing ping = new ServerPing();
|
+ ServerPing ping = new ServerPing();
|
||||||
+ ping.setFavicon(event.icon.value);
|
+ ping.setFavicon(event.icon.value);
|
||||||
+ ping.setMOTD(CraftChatMessage.fromString(event.getMotd())[0]);
|
+ ping.setMOTD(CraftChatMessage.fromString(event.getMotd(), true)[0]);
|
||||||
+ ping.setPlayerSample(playerSample);
|
+ ping.setPlayerSample(playerSample);
|
||||||
+ int version = SharedConstants.getGameVersion().getProtocolVersion();
|
+ int version = SharedConstants.getGameVersion().getProtocolVersion();
|
||||||
+ ping.setServerInfo(new ServerPing.ServerData(minecraftServer.getServerModName() + " " + minecraftServer.getVersion(), version));
|
+ ping.setServerInfo(new ServerPing.ServerData(minecraftServer.getServerModName() + " " + minecraftServer.getVersion(), version));
|
||||||
|
Loading…
Reference in New Issue
Block a user