Fix MOTD new line support (#3756)

This commit is contained in:
Callum 2020-07-02 13:58:39 +01:00 committed by GitHub
parent 4b5b20d4cd
commit ea8823ef57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ index 0000000000000000000000000000000000000000..a2a409e635dde08f7c53e67164b967a0
+}
diff --git a/src/main/java/com/destroystokyo/paper/network/StandardPaperServerListPingEventImpl.java b/src/main/java/com/destroystokyo/paper/network/StandardPaperServerListPingEventImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..d2a1e54de64896c74404e79ad721d044a9d52794
index 0000000000000000000000000000000000000000..26ddf92f86fccc2b2562f7abf4788d1ed6b73205
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/network/StandardPaperServerListPingEventImpl.java
@@ -0,0 +1,112 @@
@ -155,7 +155,7 @@ index 0000000000000000000000000000000000000000..d2a1e54de64896c74404e79ad721d044
+ ServerPing ping = new ServerPing();
+
+ // Description
+ ping.setMOTD(CraftChatMessage.fromString(event.getMotd())[0]);
+ ping.setMOTD(CraftChatMessage.fromString(event.getMotd(), true)[0]);
+
+ // Players
+ if (!event.shouldHidePlayers()) {