From 008f039f373d8313553a94188ecec36b3d927e9d Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 1 Jul 2020 14:00:02 +1000 Subject: [PATCH] SPIGOT-5913: MOTD no longer supports new line character --- nms-patches/PacketStatusListener.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/PacketStatusListener.patch b/nms-patches/PacketStatusListener.patch index 97e1a70d4a..d93eee81fe 100644 --- a/nms-patches/PacketStatusListener.patch +++ b/nms-patches/PacketStatusListener.patch @@ -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));