geforkt von SteamWar/PersistentBungeeCore
Fix constructors
Dieser Commit ist enthalten in:
Ursprung
4ec3c641be
Commit
0867fbf422
@ -24,6 +24,7 @@ import lombok.Getter;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
@Getter
|
||||
public class Bauserver extends Subserver {
|
||||
@ -41,6 +42,11 @@ public class Bauserver extends Subserver {
|
||||
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
|
||||
protected void register() {
|
||||
super.register();
|
||||
|
@ -23,6 +23,7 @@ import lombok.Getter;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
@Getter
|
||||
public class Builderserver extends Subserver {
|
||||
@ -35,12 +36,16 @@ public class Builderserver extends Subserver {
|
||||
}
|
||||
|
||||
private final String map;
|
||||
|
||||
public Builderserver(String serverName, String map, int port, ProcessBuilder processBuilder, Runnable shutdownCallback){
|
||||
super(Servertype.BUILDER, serverName, port, processBuilder, shutdownCallback);
|
||||
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
|
||||
protected void register() {
|
||||
super.register();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren