Browse Source

comment cleanup

combat-2
MagicBot 7 months ago
parent
commit
3b1db51a5e
  1. 13
      src/engine/gameManager/ConfigManager.java

13
src/engine/gameManager/ConfigManager.java

@ -8,9 +8,10 @@ @@ -8,9 +8,10 @@
package engine.gameManager;
/* This enumeration implements Magicbane's configuration data which
is loaded from environment variables.
*/
// Magicbane configuration is loaded from environment variables
//
// On boot the game first looks in mb.conf for the file magicbane.conf.
// If not found, a default is loaded from /mb.data to enable bootstrap.
import engine.mbEnums;
import engine.server.login.LoginServer;
@ -105,11 +106,11 @@ public enum ConfigManager { @@ -105,11 +106,11 @@ public enum ConfigManager {
// and determine the server type at runtime.
public static final String DEFAULT_DATA_DIR = "mb.data/";
public static Map<String, String> configMap = new HashMap(System.getenv());
public static final Map<String, String> configMap = new HashMap(System.getenv());
public static mbEnums.ServerType serverType = mbEnums.ServerType.NONE;
public static WorldServer worldServer;
public static LoginServer loginServer;
public static Map<ConfigManager, Pattern> regex = new HashMap<>();
public static final Map<ConfigManager, Pattern> regex = new HashMap<>();
public static String currentRepoBranch = "";
@ -124,7 +125,7 @@ public enum ConfigManager { @@ -124,7 +125,7 @@ public enum ConfigManager {
Logger.info(configSetting.name() + ":" + configSetting.getValue());
else {
Logger.error("Missing Config: " + configSetting.name());
Logger.error("This codebase requires >= MagicBox v1.5.1");
Logger.error("This codebase requires >= MagicBox v1.5.2");
Logger.error("docker pull magicbane/magicbox:latest");
return false;
}

Loading…
Cancel
Save