Adjust config for new fight system #192
@ -76,6 +76,7 @@ public class ArenaMode {
|
||||
private final String folder;
|
||||
private final List<String> chatNames;
|
||||
private final String serverJar;
|
||||
private final String config;
|
||||
private final List<String> 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))
|
||||
|
@ -120,6 +120,7 @@ public class SubserverSystem {
|
||||
port,
|
||||
"2G",
|
||||
"logPath=" + mapName,
|
||||
"config="+modus.getConfig(),
|
||||
"fightID=" + eventFightID,
|
||||
"ranked=" + ranked,
|
||||
"checkSchemID=" + checkSchemID,
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren