Browse Source

Maintenance hour and bot/game version config entries removed.

master
MagicBot 2 years ago
parent
commit
5af1687f19
  1. 6
      src/discord/handlers/StatusRequestHandler.java
  2. 15
      src/engine/gameManager/ConfigManager.java

6
src/discord/handlers/StatusRequestHandler.java

@ -20,12 +20,8 @@ public class StatusRequestHandler { @@ -20,12 +20,8 @@ public class StatusRequestHandler {
String outString;
// Add version information
outString = "MagicBot: " + ConfigManager.MB_MAGICBOT_BOTVERSION.getValue() + "\n" +
"MagicBane: " + ConfigManager.MB_MAGICBOT_GAMEVERSION.getValue() + "\n";
// Add server status info
outString += "\nServer Status: ";
outString = "Server Status: ";
if (LoginServer.isPortInUse(Integer.parseInt(ConfigManager.MB_WORLD_PORT.getValue())))
outString += "ONLINE\n";

15
src/engine/gameManager/ConfigManager.java

@ -63,10 +63,14 @@ public enum ConfigManager { @@ -63,10 +63,14 @@ public enum ConfigManager {
MB_WORLD_UUID,
MB_WORLD_WAREHOUSE_PUSH,
MB_WORLD_MAINTENANCE,
MB_WORLD_MAINTENANCE_HOUR,
MB_WORLD_GREETING,
MB_WORLD_KEYCLONE_MAX,
//drop rates
MB_NORMAL_RATE,
MB_HOTZONE_RATE,
MB_HOTZONE_DURATION,
// MagicBot configuration.
MB_MAGICBOT_SERVERID,
@ -79,13 +83,8 @@ public enum ConfigManager { @@ -79,13 +83,8 @@ public enum ConfigManager {
MB_MAGICBOT_GENERAL,
MB_MAGICBOT_FORTOFIX,
MB_MAGICBOT_RECRUIT,
MB_MAGICBOT_ADMINLOG,
MB_MAGICBOT_BOTVERSION,
MB_MAGICBOT_GAMEVERSION,
//drop rates
MB_NORMAL_RATE,
MB_HOTZONE_RATE,
MB_HOTZONE_DURATION;
MB_MAGICBOT_ADMINLOG;
// Map to hold our config pulled in from the environment
// We also use the config to point to the current message pump
// and determine the server type at runtime.

Loading…
Cancel
Save