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 0341baa
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -419,7 +419,7 @@ public void handle(LoginRequest loginRequest) throws Exception

// If offline mode and they are already on, don't allow connect
// We can just check by UUID here as names are based on UUID
if ( !isOnlineMode() && bungee.getPlayer( getUniqueId() ) != null )
if ( ( true || !isOnlineMode() ) && bungee.getPlayer( getUniqueId() ) != null )
{
disconnect( bungee.getTranslation( "already_connected_proxy" ) );
return;
Expand Down Expand Up @@ -540,7 +540,7 @@ private void finish()
}
}

if ( isOnlineMode() )
if ( false && isOnlineMode() )
{
// Check for multiple connections
// We have to check for the old name first
Expand Down

0 comments on commit 0341baa

Please sign in to comment.