mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-23 18:55:22 +01:00
#3444: Use same duplicate player handling for online and offline modes
This commit is contained in:
parent
f9712cbc7c
commit
b47ae0944c
@ -548,14 +548,14 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
||||
if ( oldName != null )
|
||||
{
|
||||
// TODO See #1218
|
||||
oldName.disconnect( bungee.getTranslation( "already_connected_proxy" ) );
|
||||
disconnect( bungee.getTranslation( "already_connected_proxy" ) );
|
||||
}
|
||||
// And then also for their old UUID
|
||||
ProxiedPlayer oldID = bungee.getPlayer( getUniqueId() );
|
||||
if ( oldID != null )
|
||||
{
|
||||
// TODO See #1218
|
||||
oldID.disconnect( bungee.getTranslation( "already_connected_proxy" ) );
|
||||
disconnect( bungee.getTranslation( "already_connected_proxy" ) );
|
||||
}
|
||||
} else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user