mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Update translations
This commit is contained in:
parent
bdcc22b465
commit
e44192ab7b
12 changed files with 160 additions and 132 deletions
|
|
@ -522,7 +522,7 @@ namespace MinecraftClient
|
|||
text = GetVerbatim(text);
|
||||
|
||||
//User-defined regex for private chat messages
|
||||
if (Config.ChatFormat.Private != null)
|
||||
if (Config.ChatFormat.UserDefined && !string.IsNullOrWhiteSpace(Config.ChatFormat.Private))
|
||||
{
|
||||
Match regexMatch = new Regex(Config.ChatFormat.Private).Match(text);
|
||||
if (regexMatch.Success && regexMatch.Groups.Count >= 3)
|
||||
|
|
@ -633,7 +633,7 @@ namespace MinecraftClient
|
|||
text = GetVerbatim(text);
|
||||
|
||||
//User-defined regex for public chat messages
|
||||
if (Config.ChatFormat.Public != null)
|
||||
if (Config.ChatFormat.UserDefined && !string.IsNullOrWhiteSpace(Config.ChatFormat.Public))
|
||||
{
|
||||
Match regexMatch = new Regex(Config.ChatFormat.Public).Match(text);
|
||||
if (regexMatch.Success && regexMatch.Groups.Count >= 3)
|
||||
|
|
@ -736,7 +736,7 @@ namespace MinecraftClient
|
|||
text = GetVerbatim(text);
|
||||
|
||||
//User-defined regex for teleport requests
|
||||
if (Config.ChatFormat.TeleportRequest != null)
|
||||
if (Config.ChatFormat.UserDefined && !string.IsNullOrWhiteSpace(Config.ChatFormat.TeleportRequest))
|
||||
{
|
||||
Match regexMatch = new Regex(Config.ChatFormat.TeleportRequest).Match(text);
|
||||
if (regexMatch.Success && regexMatch.Groups.Count >= 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue