mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 20:59:12 +01:00
Try removing connections via string key and direct map access. Closes issue #267
This commit is contained in:
parent
c615b2362f
commit
a38b3ce9f2
@ -2,6 +2,7 @@ package net.md_5.bungee.connection;
|
||||
|
||||
import io.netty.channel.Channel;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import net.md_5.bungee.BungeeCord;
|
||||
import net.md_5.bungee.EntityMap;
|
||||
import net.md_5.bungee.UserConnection;
|
||||
import net.md_5.bungee.Util;
|
||||
@ -35,7 +36,7 @@ public class UpstreamBridge extends PacketHandler
|
||||
PlayerDisconnectEvent event = new PlayerDisconnectEvent( con );
|
||||
bungee.getPluginManager().callEvent( event );
|
||||
bungee.getTabListHandler().onDisconnect( con );
|
||||
bungee.getPlayers().remove( con );
|
||||
BungeeCord.getInstance().connections.remove( con.getName() ); //TODO: Better way, why do we need to raw access?
|
||||
|
||||
if ( con.getServer() != null )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user