Improvements

This commit is contained in:
ZeroEpoch1969
2018-03-18 01:32:50 -07:00
parent c423f273c5
commit 50cb6c4ca9
11 changed files with 100 additions and 31 deletions

View File

@ -43,6 +43,12 @@ public class ServerPing extends FreedomService
return;
}
if (LoginProcess.isLockdownEnabled())
{
event.setMotd(ChatColor.RED + "Server is in lock-down.");
return;
}
if (Bukkit.hasWhitelist())
{
event.setMotd(ChatColor.RED + "Whitelist enabled.");
@ -55,8 +61,7 @@ public class ServerPing extends FreedomService
return;
}
// String baseMotd = ConfigEntry.SERVER_MOTD.getString().replace("%mcversion%", plugin.si.getVersion());
String baseMotd = ConfigEntry.SERVER_MOTD.getString();
String baseMotd = ConfigEntry.SERVER_MOTD.getString().replace("%mcversion%", plugin.si.getVersion());
baseMotd = baseMotd.replace("\\n", "\n");
baseMotd = FUtil.colorize(baseMotd);