13
0

Adding shutdown callback to bauserver

Dieser Commit ist enthalten in:
Lixfel 2019-12-16 09:48:09 +01:00
Ursprung 37eba7a6f9
Commit 70198d0962

Datei anzeigen

@ -7,7 +7,11 @@ public class Bauserver extends Subserver {
private final UUID owner; private final UUID owner;
public Bauserver(String serverName, UUID owner, int port, String... command) { public Bauserver(String serverName, UUID owner, int port, String... command) {
super(Servertype.BAUSERVER, serverName, port, command); this(serverName, owner, port, () -> {}, command);
}
public Bauserver(String serverName, UUID owner, int port, Runnable shutdownCallback, String... command) {
super(Servertype.BAUSERVER, serverName, port, shutdownCallback, command);
this.owner = owner; this.owner = owner;
} }