mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
parent
e72580bcb6
commit
68eeadf59a
1 changed files with 4 additions and 1 deletions
|
|
@ -93,6 +93,7 @@ namespace MinecraftClient
|
|||
public static string PrivateMsgsCmdName = "tell";
|
||||
public static CacheType SessionCaching = CacheType.None;
|
||||
public static bool DebugMessages = false;
|
||||
public static bool ResolveSrvRecords = true;
|
||||
|
||||
//AntiAFK Settings
|
||||
public static bool AntiAFK_Enabled = false;
|
||||
|
|
@ -226,6 +227,7 @@ namespace MinecraftClient
|
|||
case "privatemsgscmdname": PrivateMsgsCmdName = argValue.ToLower().Trim(); break;
|
||||
case "botmessagedelay": botMessageDelay = TimeSpan.FromSeconds(str2int(argValue)); break;
|
||||
case "debugmessages": DebugMessages = str2bool(argValue); break;
|
||||
case "resolvesrvrecords": ResolveSrvRecords = str2bool(argValue); break;
|
||||
|
||||
case "botowners":
|
||||
Bots_Owners.Clear();
|
||||
|
|
@ -525,6 +527,7 @@ namespace MinecraftClient
|
|||
+ "showchatlinks=true # Show links embedded in chat messages\r\n"
|
||||
+ "terrainandmovements=false # Uses more ram, cpu, bandwidth\r\n"
|
||||
+ "sessioncache=memory # Use 'none', 'memory' or 'disk' (disk is experimental)\r\n"
|
||||
+ "resolvesrvrecords=true # Resolve SRV DNS record (required for joining some servers)\r\n"
|
||||
+ "accountlist=accounts.txt\r\n"
|
||||
+ "serverlist=servers.txt\r\n"
|
||||
+ "playerheadicon=true\r\n"
|
||||
|
|
@ -678,7 +681,7 @@ namespace MinecraftClient
|
|||
if (host == "localhost" || host.Contains('.'))
|
||||
{
|
||||
//Server IP (IP or domain names contains at least a dot)
|
||||
if (sip.Length == 1 && host.Contains('.') && host.Any(c => char.IsLetter(c)))
|
||||
if (sip.Length == 1 && host.Contains('.') && host.Any(c => char.IsLetter(c)) && ResolveSrvRecords)
|
||||
//Domain name without port may need Minecraft SRV Record lookup
|
||||
ProtocolHandler.MinecraftServiceLookup(ref host, ref port);
|
||||
ServerIP = host;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue