From 0867fbf422a1e6c5c6398727c43d11c4044d2ee7 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 16 Jan 2024 15:12:57 +0100 Subject: [PATCH] Fix constructors --- src/de/steamwar/bungeecore/Bauserver.java | 6 ++++++ src/de/steamwar/bungeecore/Builderserver.java | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/Bauserver.java b/src/de/steamwar/bungeecore/Bauserver.java index bd00a7f..5fe0881 100644 --- a/src/de/steamwar/bungeecore/Bauserver.java +++ b/src/de/steamwar/bungeecore/Bauserver.java @@ -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 failureCallback){ + super(Servertype.BAUSERVER, serverName, port, processBuilder, shutdownCallback, failureCallback); + this.owner = owner; + } + @Override protected void register() { super.register(); diff --git a/src/de/steamwar/bungeecore/Builderserver.java b/src/de/steamwar/bungeecore/Builderserver.java index a9a152f..2968d6b 100644 --- a/src/de/steamwar/bungeecore/Builderserver.java +++ b/src/de/steamwar/bungeecore/Builderserver.java @@ -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 failureCallback){ + super(Servertype.BUILDER, serverName, port, processBuilder, shutdownCallback, failureCallback); + this.map = map; + } + @Override protected void register() { super.register();