13
0
geforkt von Mirrors/Velocity

Validate MOTD too

Also remove accidentally added velocity.toml.
Dieser Commit ist enthalten in:
Andrew Steinborn 2018-07-27 15:11:33 -04:00
Ursprung 247dafd9de
Commit 2512621a25
2 geänderte Dateien mit 10 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -80,6 +80,13 @@ public class VelocityConfiguration {
} }
} }
try {
getMotdComponent();
} catch (Exception e) {
logger.error("Can't parse your MOTD", e);
valid = false;
}
return valid; return valid;
} }

Datei anzeigen

@ -2,7 +2,9 @@
bind = "0.0.0.0:26671" bind = "0.0.0.0:26671"
# What should be the MOTD? Legacy color codes and JSON are accepted. # What should be the MOTD? Legacy color codes and JSON are accepted.
motd = "&3A Velocity Server" motd = """
{"text":"hi"}
"""
# What should we display for the maximum number of players? (Velocity does not support a cap # What should we display for the maximum number of players? (Velocity does not support a cap
# on the number of players online.) # on the number of players online.)