Kick only in online mode: #1382
This commit is contained in:
parent
e1951c5d66
commit
f2673c5876
@ -415,6 +415,8 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
||||
}
|
||||
|
||||
private void finish()
|
||||
{
|
||||
if ( isOnlineMode() )
|
||||
{
|
||||
// Check for multiple connections
|
||||
// We have to check for the old name first
|
||||
@ -431,6 +433,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
||||
// TODO See #1218
|
||||
oldID.disconnect( bungee.getTranslation( "already_connected" ) );
|
||||
}
|
||||
}
|
||||
|
||||
offlineId = java.util.UUID.nameUUIDFromBytes( ( "OfflinePlayer:" + getName() ).getBytes( Charsets.UTF_8 ) );
|
||||
if ( uniqueId == null )
|
||||
|
Loading…
Reference in New Issue
Block a user