1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-01-29 11:07:59 +01:00

Fix MOTD new line support ()

This commit is contained in:
Callum 2020-07-02 13:58:39 +01:00
parent 85408c2f74
commit c09194971e

View file

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