Dieser Commit ist enthalten in:
Ursprung
4ec3c641be
Commit
0867fbf422
@ -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();
|
||||||
|
@ -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();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren