Archiviert
1
0

🎨 Using code that is already Present

Dieser Commit ist enthalten in:
Chaoscaot 2022-03-31 22:49:24 +02:00
Ursprung 3b358a8666
Commit a09ee03937

Datei anzeigen

@ -51,6 +51,7 @@ public class ServerStarter {
serverJar = mode.serverJar(); serverJar = mode.serverJar();
directory = new File(SERVER_PATH, mode.getFolder()); directory = new File(SERVER_PATH, mode.getFolder());
arguments.put("config", mode.getConfig()); arguments.put("config", mode.getConfig());
constructor = (serverName, port, builder, shutdownCallback) -> new Arenaserver(serverName, mode.getDisplayName(), map, !mode.isRanked(), port, builder, shutdownCallback);
tempWorld(SERVER_PATH + mode.getFolder() + "/arenas/" + map); tempWorld(SERVER_PATH + mode.getFolder() + "/arenas/" + map);
return this; return this;
} }
@ -61,6 +62,7 @@ public class ServerStarter {
worldDir = EVENT_PATH; worldDir = EVENT_PATH;
worldCleanup = () -> {}; worldCleanup = () -> {};
arguments.put("fightID", String.valueOf(eventFight.getFightID())); arguments.put("fightID", String.valueOf(eventFight.getFightID()));
constructor = (serverName, port, builder, shutdownCallback) -> new Arenaserver(serverName, eventFight.getSpielmodus().getDisplayName(), eventFight.getMap(), false, port, builder, shutdownCallback);
String serverName = Team.get(eventFight.getTeamBlue()).getTeamKuerzel() + " vs " + Team.get(eventFight.getTeamRed()).getTeamKuerzel(); String serverName = Team.get(eventFight.getTeamBlue()).getTeamKuerzel() + " vs " + Team.get(eventFight.getTeamRed()).getTeamKuerzel();
serverNameProvider = port -> serverName; serverNameProvider = port -> serverName;