From 5cdfc1821e3f2d2d112faf56bdf607adfbf0cd67 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 4 Sep 2021 22:33:34 +0200 Subject: [PATCH] Add hasStarted to prevent multiple personal servers --- src/de/steamwar/bungeecore/Subserver.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/de/steamwar/bungeecore/Subserver.java b/src/de/steamwar/bungeecore/Subserver.java index 7813460..cf3e9b8 100644 --- a/src/de/steamwar/bungeecore/Subserver.java +++ b/src/de/steamwar/bungeecore/Subserver.java @@ -39,6 +39,7 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; +@SuppressWarnings("deprecation") public class Subserver implements Runnable { private static final List serverList = new LinkedList<>(); @@ -110,6 +111,10 @@ public class Subserver implements Runnable { return tablistNames; } + public boolean hasStarted(){ + return started; + } + public void sendPlayer(ProxiedPlayer p){ if(!started){ p.sendMessage(Persistent.getPrefix() + "ยง7Der Server wird gestartet, einen Moment bitte...");