Commit d68bc4e1 authored by Kenix Whisperwind's avatar Kenix Whisperwind

Added a server name class member to Server

parent 001e8b96
......@@ -66,7 +66,9 @@ public final class Server implements Runnable {
private long timeLate = 0;
private long lastClientUpdate = 0;
private com.openrsc.server.constants.Constants constants;
private String name;
private Constants constants;
static {
try {
......@@ -87,6 +89,8 @@ public final class Server implements Runnable {
getConfig().initConfig(configFile);
LOGGER.info("Server configuration loaded");
name = getConfig().SERVER_NAME;
constants = new Constants(this);
discordService = new DiscordService(this);
playerDataProcessor = new PlayerDatabaseExecutor(this);
......@@ -504,4 +508,8 @@ public final class Server implements Runnable {
public World getWorld() {
return world;
}
public String getName() {
return name;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment