13
0

Fix constructors
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2024-01-16 15:12:57 +01:00
Ursprung 4ec3c641be
Commit 0867fbf422
2 geänderte Dateien mit 12 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -24,6 +24,7 @@ import lombok.Getter;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.UUID; import java.util.UUID;
import java.util.function.Consumer;
@Getter @Getter
public class Bauserver extends Subserver { public class Bauserver extends Subserver {
@ -41,6 +42,11 @@ public class Bauserver extends Subserver {
this.owner = owner; this.owner = owner;
} }
public Bauserver(String serverName, UUID owner, int port, ProcessBuilder processBuilder, Runnable shutdownCallback, Consumer<Exception> failureCallback){
super(Servertype.BAUSERVER, serverName, port, processBuilder, shutdownCallback, failureCallback);
this.owner = owner;
}
@Override @Override
protected void register() { protected void register() {
super.register(); super.register();

Datei anzeigen

@ -23,6 +23,7 @@ import lombok.Getter;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.function.Consumer;
@Getter @Getter
public class Builderserver extends Subserver { public class Builderserver extends Subserver {
@ -35,12 +36,16 @@ public class Builderserver extends Subserver {
} }
private final String map; private final String map;
public Builderserver(String serverName, String map, int port, ProcessBuilder processBuilder, Runnable shutdownCallback){ public Builderserver(String serverName, String map, int port, ProcessBuilder processBuilder, Runnable shutdownCallback){
super(Servertype.BUILDER, serverName, port, processBuilder, shutdownCallback); super(Servertype.BUILDER, serverName, port, processBuilder, shutdownCallback);
this.map = map; this.map = map;
} }
public Builderserver(String serverName, String map, int port, ProcessBuilder processBuilder, Runnable shutdownCallback, Consumer<Exception> failureCallback){
super(Servertype.BUILDER, serverName, port, processBuilder, shutdownCallback, failureCallback);
this.map = map;
}
@Override @Override
protected void register() { protected void register() {
super.register(); super.register();