Add setting for allowing non-English name in player list (#2556)

Non-vanilla server may have player name other than English, for example Chinese server can have player name in Chinese. This setting allow MCC to display those non-English name in the player list.
This commit is contained in:
ReinforceZwei 2023-08-02 14:00:11 +08:00 committed by GitHub
parent ac65482296
commit a8200b6e14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 2006 additions and 1273 deletions

View file

@ -2967,7 +2967,7 @@ namespace MinecraftClient
public void OnPlayerJoin(PlayerInfo player)
{
//Ignore placeholders eg 0000tab# from TabListPlus
if (!ChatBot.IsValidName(player.Name))
if (Config.Main.Advanced.IgnoreInvalidPlayerName && !ChatBot.IsValidName(player.Name))
return;
if (player.Name == username)