public class ServerConfigurator extends GlobalConfigurationUtils
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
motdBase
The message of the day string with unfilled placeholders.
|
private static java.lang.String |
motdGoodbye
Goodbye message part for the message of the day.
|
private static java.util.List<java.lang.String> |
motdRandomMessages
Randomized message parts for the message of the day.
|
Constructor and Description |
---|
ServerConfigurator() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
getModules() |
static int |
getServerApiPort() |
static java.lang.String |
getServerKey() |
static java.lang.String |
getServerMotd(java.lang.String playerName) |
private static void |
initMessagesParts()
Loads and caches the message of the day parts from the config.
|
mainConfigGetBoolean, mainConfigGetDouble, mainConfigGetInt, mainConfigGetKeys, mainConfigGetLocation, mainConfigGetLong, mainConfigGetString, mainConfigGetStringList, mainConfigSet
private static java.lang.String motdBase
private static java.lang.String motdGoodbye
private static java.util.List<java.lang.String> motdRandomMessages
public static java.lang.String getServerKey()
public static java.util.List<java.lang.String> getModules()
public static int getServerApiPort()
public static java.lang.String getServerMotd(java.lang.String playerName)
playerName
- The name of the player to put in the message.private static void initMessagesParts()