From 0dcb831142f9068bd26654fc0335f174626dc264 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 30 Mar 2021 20:03:56 +0200 Subject: [PATCH] Fix missing config Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/ArenaMode.java | 6 ++++++ src/de/steamwar/bungeecore/SubserverSystem.java | 1 + 2 files changed, 7 insertions(+) diff --git a/src/de/steamwar/bungeecore/ArenaMode.java b/src/de/steamwar/bungeecore/ArenaMode.java index b675b8e..4d5a868 100644 --- a/src/de/steamwar/bungeecore/ArenaMode.java +++ b/src/de/steamwar/bungeecore/ArenaMode.java @@ -76,6 +76,7 @@ public class ArenaMode { private final String folder; private final List chatNames; private final String serverJar; + private final String config; private final List maps; private final boolean historic; @@ -85,6 +86,7 @@ public class ArenaMode { private ArenaMode(String internalName, Configuration config){ this.folder = config.getString("folder"); this.serverJar = config.getString("serverJar"); + this.config = config.getString("config"); this.maps = config.getStringList("maps"); this.displayName = config.getString("displayName", internalName); if(config.contains("chatNames")) @@ -114,6 +116,10 @@ public class ArenaMode { return serverJar; } + public String getConfig(){ + return config; + } + public String hasMap(String map){ for(String m : maps){ if(m.equalsIgnoreCase(map)) diff --git a/src/de/steamwar/bungeecore/SubserverSystem.java b/src/de/steamwar/bungeecore/SubserverSystem.java index 4898548..8295642 100644 --- a/src/de/steamwar/bungeecore/SubserverSystem.java +++ b/src/de/steamwar/bungeecore/SubserverSystem.java @@ -120,6 +120,7 @@ public class SubserverSystem { port, "2G", "logPath=" + mapName, + "config="+modus.getConfig(), "fightID=" + eventFightID, "ranked=" + ranked, "checkSchemID=" + checkSchemID,