mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Add setting for manually choosing MC version
- User can manually provide server version in config file - Server is not pinged if a minecraft version was manually provided - If the provided version isn't recognized, ping is re-enabled
This commit is contained in:
parent
f0b071ddea
commit
8b5ce567a6
5 changed files with 97 additions and 35 deletions
|
|
@ -21,6 +21,7 @@ namespace MinecraftClient
|
|||
public static string Password = "";
|
||||
public static string ServerIP = "";
|
||||
public static short ServerPort = 25565;
|
||||
public static string ServerVersion = "";
|
||||
public static string SingleCommand = "";
|
||||
public static string ConsoleTitle = "";
|
||||
|
||||
|
|
@ -82,7 +83,7 @@ namespace MinecraftClient
|
|||
//Remote Control
|
||||
public static bool RemoteCtrl_Enabled = false;
|
||||
|
||||
//App variables
|
||||
//Custom app variables
|
||||
private static Dictionary<string, string> AppVars = new Dictionary<string, string>();
|
||||
|
||||
private enum ParseMode { Default, Main, AppVars, Proxy, AntiAFK, Hangman, Alerts, ChatLog, AutoRelog, ScriptScheduler, RemoteControl };
|
||||
|
|
@ -140,6 +141,7 @@ namespace MinecraftClient
|
|||
case "consoletitle": ConsoleTitle = argValue; break;
|
||||
case "timestamps": chatTimeStamps = str2bool(argValue); break;
|
||||
case "exitonfailure": exitOnFailure = str2bool(argValue); break;
|
||||
case "mcversion": ServerVersion = argValue; break;
|
||||
case "botowners":
|
||||
Bots_Owners.Clear();
|
||||
foreach (string name in argValue.ToLower().Replace(" ", "").Split(','))
|
||||
|
|
@ -270,6 +272,7 @@ namespace MinecraftClient
|
|||
+ "language=en_GB\r\n"
|
||||
+ "botowners=Player1,Player2,Player3\r\n"
|
||||
+ "consoletitle=%username% - Minecraft Console Client\r\n"
|
||||
+ "mcversion=auto #use 'auto' or '1.X.X' values\r\n"
|
||||
+ "exitonfailure=false\r\n"
|
||||
+ "timestamps=false\r\n"
|
||||
+ "\r\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue