From 282a55d2f6efb60ba47160e68d1bfb6826a324d2 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 29 Oct 2020 08:52:46 +0100 Subject: [PATCH] Adding custom tablist name capabilities --- src/de/steamwar/bungeecore/Subserver.java | 6 ++++++ 1 file changed, 6 insertions(+) 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){