From 70198d0962f0669d572a9b1b8ae45ad668e701a7 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 16 Dec 2019 09:48:09 +0100 Subject: [PATCH] Adding shutdown callback to bauserver --- src/de/steamwar/bungeecore/Bauserver.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/Bauserver.java b/src/de/steamwar/bungeecore/Bauserver.java index 93b4ef4..680e548 100644 --- a/src/de/steamwar/bungeecore/Bauserver.java +++ b/src/de/steamwar/bungeecore/Bauserver.java @@ -7,7 +7,11 @@ public class Bauserver extends Subserver { private final UUID owner; 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; }