From 23cd9b2334bfe76ad652360b663719b49eaa6045 Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 24 Oct 2020 19:01:03 +0200 Subject: [PATCH] =?UTF-8?q?Remove=20PUB=20(=C3=96ffentlich)=20team=20from?= =?UTF-8?q?=20/team=20info=20after=20/softreload?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/de/steamwar/bungeecore/sql/Team.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/sql/Team.java b/src/de/steamwar/bungeecore/sql/Team.java index e32049b0..b44feb29 100644 --- a/src/de/steamwar/bungeecore/sql/Team.java +++ b/src/de/steamwar/bungeecore/sql/Team.java @@ -43,7 +43,9 @@ public class Team { teamKuerzel = kuerzel; teamName = name; teamLeader = leader; - teamCache.add(this); + if (leader != 0) { + teamCache.add(this); + } } private Team(ResultSet rs) throws SQLException {