Skip to content

Commit

Permalink
#3444: Use same duplicate player handling for online and offline modes
Browse files Browse the repository at this point in the history
  • Loading branch information
md-5 committed Mar 14, 2023
1 parent f9712cb commit b47ae09
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -548,14 +548,14 @@ private void finish()
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
{
Expand Down

0 comments on commit b47ae09

Please sign in to comment.