SPIGOT-5913: MOTD no longer supports new line character
By: md_5 <git@md-5.net>
This commit is contained in:
parent
c6249c09b0
commit
d8ea824b93
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue