From e5c457df0478a76d32e50aa7d1917a4182904d49 Mon Sep 17 00:00:00 2001 From: Robin Lambertz Date: Tue, 9 Apr 2013 02:10:41 +0200 Subject: [PATCH] Add new Team instances to the list of teams. --- .../net/md_5/bungee/connection/DownstreamBridge.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java index 1310adae..5a4cc439 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java @@ -149,7 +149,16 @@ public class DownstreamBridge extends PacketHandler } // Create or get old team - Team t = ( team.mode == 0 ) ? new Team( team.name ) : con.serverSentScoreboard.getTeam( team.name ); + Team t; + if ( team.mode == 0 ) + { + t = new Team( team.name ); + con.serverSentScoreboard.addTeam( team ); + } else + { + con.serverSentScoreboard.getTeam( team.name ); + } + if ( t != null ) { if ( team.mode == 0 || team.mode == 2 )