diff --git a/buildSrc/src/steamwar.devserver.gradle b/buildSrc/src/steamwar.devserver.gradle index 72f14168..1879bf87 100644 --- a/buildSrc/src/steamwar.devserver.gradle +++ b/buildSrc/src/steamwar.devserver.gradle @@ -202,23 +202,10 @@ class FightServer extends DevServer { FightServer() { super() doFirst { - { - int count = 0 - if (checkSchemID != 0) count++ - if (prepareSchemID != 0) count++ - if (replay != 0) count++ - if (eventKampfID != 0) count++ - if (count > 1) { - throw new GradleException("You can only set one of 'checkSchemID', 'prepareSchemID', 'replay' and 'eventKampfID'") - } - if (checkSchemID != 0) dParams.put("checkSchemID", "$checkSchemID") - if (prepareSchemID != 0) dParams.put("prepareSchemID", "$prepareSchemID") - if (replay != 0) dParams.put("replay", "$replay") - if (eventKampfID != 0) dParams.put("fightID", "$eventKampfID") - } - if (blueLeader != null && redLeader == null || blueLeader == null && redLeader != null) { - logger.log(LogLevel.WARN, "Please provide both a blue and a red leader. If this is intended ignore this message!") - } + if (checkSchemID != 0) dParams.put("checkSchemID", "$checkSchemID") + if (prepareSchemID != 0) dParams.put("prepareSchemID", "$prepareSchemID") + if (replay != 0) dParams.put("replay", "$replay") + if (eventKampfID != 0) dParams.put("fightID", "$eventKampfID") if (blueLeader != null) dParams.put("blueLeader", blueLeader.toString()) if (redLeader != null) dParams.put("redLeader", redLeader.toString()) if (config != null) dParams.put("config", config)