3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-16 03:20:07 +01:00

Fix MOTD new line support (#3756)

Dieser Commit ist enthalten in:
Callum 2020-07-02 13:58:39 +01:00 committet von GitHub
Ursprung 4b5b20d4cd
Commit ea8823ef57
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -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()) {