diff --git a/src/de/steamwar/bungeecore/Subserver.java b/src/de/steamwar/bungeecore/Subserver.java index 201968d..a59d94b 100644 --- a/src/de/steamwar/bungeecore/Subserver.java +++ b/src/de/steamwar/bungeecore/Subserver.java @@ -31,8 +31,10 @@ import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.InetSocketAddress; +import java.util.HashMap; import java.util.LinkedList; import java.util.List; +import java.util.Map; import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; @@ -68,6 +70,7 @@ public class Subserver implements Runnable { private boolean started; private final List cachedPlayers = new LinkedList<>(); + private final Map tablistNames = new HashMap<>(); public Subserver(Servertype type, String serverName, int port, String... command){ this(type, serverName, port, () -> {}, command); @@ -103,6 +106,9 @@ public class Subserver implements Runnable { public Servertype getType(){ return type; } + public Map getTablistNames(){ + return tablistNames; + } public void sendPlayer(ProxiedPlayer p){ if(!started){