#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 )
|
if ( oldName != null )
|
||||||
{
|
{
|
||||||
// TODO See #1218
|
// TODO See #1218
|
||||||
oldName.disconnect( bungee.getTranslation( "already_connected_proxy" ) );
|
disconnect( bungee.getTranslation( "already_connected_proxy" ) );
|
||||||
}
|
}
|
||||||
// And then also for their old UUID
|
// And then also for their old UUID
|
||||||
ProxiedPlayer oldID = bungee.getPlayer( getUniqueId() );
|
ProxiedPlayer oldID = bungee.getPlayer( getUniqueId() );
|
||||||
if ( oldID != null )
|
if ( oldID != null )
|
||||||
{
|
{
|
||||||
// TODO See #1218
|
// TODO See #1218
|
||||||
oldID.disconnect( bungee.getTranslation( "already_connected_proxy" ) );
|
disconnect( bungee.getTranslation( "already_connected_proxy" ) );
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user