mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
Fix MOTD new line support (#3756)
This commit is contained in:
@@ -155,7 +155,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ ServerPing ping = new ServerPing();
|
+ ServerPing ping = new ServerPing();
|
||||||
+
|
+
|
||||||
+ // Description
|
+ // Description
|
||||||
+ ping.setMOTD(CraftChatMessage.fromString(event.getMotd())[0]);
|
+ ping.setMOTD(CraftChatMessage.fromString(event.getMotd(), true)[0]);
|
||||||
+
|
+
|
||||||
+ // Players
|
+ // Players
|
||||||
+ if (!event.shouldHidePlayers()) {
|
+ if (!event.shouldHidePlayers()) {
|
||||||
|
Reference in New Issue
Block a user