geforkt von SteamWar/BungeeCore
Fix missing config
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
1824dda857
Commit
0dcb831142
@ -76,6 +76,7 @@ public class ArenaMode {
|
|||||||
private final String folder;
|
private final String folder;
|
||||||
private final List<String> chatNames;
|
private final List<String> chatNames;
|
||||||
private final String serverJar;
|
private final String serverJar;
|
||||||
|
private final String config;
|
||||||
private final List<String> maps;
|
private final List<String> maps;
|
||||||
private final boolean historic;
|
private final boolean historic;
|
||||||
|
|
||||||
@ -85,6 +86,7 @@ public class ArenaMode {
|
|||||||
private ArenaMode(String internalName, Configuration config){
|
private ArenaMode(String internalName, Configuration config){
|
||||||
this.folder = config.getString("folder");
|
this.folder = config.getString("folder");
|
||||||
this.serverJar = config.getString("serverJar");
|
this.serverJar = config.getString("serverJar");
|
||||||
|
this.config = config.getString("config");
|
||||||
this.maps = config.getStringList("maps");
|
this.maps = config.getStringList("maps");
|
||||||
this.displayName = config.getString("displayName", internalName);
|
this.displayName = config.getString("displayName", internalName);
|
||||||
if(config.contains("chatNames"))
|
if(config.contains("chatNames"))
|
||||||
@ -114,6 +116,10 @@ public class ArenaMode {
|
|||||||
return serverJar;
|
return serverJar;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getConfig(){
|
||||||
|
return config;
|
||||||
|
}
|
||||||
|
|
||||||
public String hasMap(String map){
|
public String hasMap(String map){
|
||||||
for(String m : maps){
|
for(String m : maps){
|
||||||
if(m.equalsIgnoreCase(map))
|
if(m.equalsIgnoreCase(map))
|
||||||
|
@ -120,6 +120,7 @@ public class SubserverSystem {
|
|||||||
port,
|
port,
|
||||||
"2G",
|
"2G",
|
||||||
"logPath=" + mapName,
|
"logPath=" + mapName,
|
||||||
|
"config="+modus.getConfig(),
|
||||||
"fightID=" + eventFightID,
|
"fightID=" + eventFightID,
|
||||||
"ranked=" + ranked,
|
"ranked=" + ranked,
|
||||||
"checkSchemID=" + checkSchemID,
|
"checkSchemID=" + checkSchemID,
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren