Block really wrong offline mode names, see #1270
This commit is contained in:
@@ -268,6 +268,12 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
||||
return;
|
||||
}
|
||||
|
||||
if ( getName().contains( "." ) )
|
||||
{
|
||||
disconnect( bungee.getTranslation( "name_invalid" ) );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( getName().length() > 16 )
|
||||
{
|
||||
disconnect( bungee.getTranslation( "name_too_long" ) );
|
||||
|
Reference in New Issue
Block a user