многострочный motd
This commit is contained in:
@@ -14,6 +14,7 @@ import mc.protocol.packets.client.LoginStartPacket;
|
||||
import mc.protocol.packets.client.StatusServerRequestPacket;
|
||||
import mc.protocol.packets.server.DisconnectPacket;
|
||||
import mc.protocol.packets.server.StatusServerResponse;
|
||||
import mc.protocol.serializer.TextSerializer;
|
||||
import mc.server.config.Config;
|
||||
import mc.server.di.ConfigModule;
|
||||
import mc.server.di.DaggerServerComponent;
|
||||
@@ -61,7 +62,7 @@ public class Main {
|
||||
serverInfo.players().max(config.players().maxOnlile());
|
||||
serverInfo.players().online(config.players().onlile());
|
||||
serverInfo.players().sample(Collections.emptyList());
|
||||
serverInfo.description(Text.of(config.motd()));
|
||||
serverInfo.description(TextSerializer.fromPlain(config.motd()));
|
||||
|
||||
if (config.iconPath() != null) {
|
||||
serverInfo.favicon(faviconToBase64(config.iconPath()));
|
||||
|
||||
@@ -2,7 +2,9 @@ server:
|
||||
host: 127.0.0.1
|
||||
port: 25565
|
||||
|
||||
motd: 'mc-project::ZERO'
|
||||
motd: |
|
||||
&bmc-project &8:: &4ZERO
|
||||
&8develop by &7DmitriyMX
|
||||
|
||||
players:
|
||||
max-online: 0
|
||||
|
||||
Reference in New Issue
Block a user