#3444: Use same duplicate player handling for online and offline modes

This commit is contained in:
md_5 2023-03-15 07:38:27 +11:00
parent f9712cbc7c
commit b47ae0944c
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -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
{