mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Added setting to make sending brand info optional.
sendbrandinfo=true|false was added so we can optionally send client info. Enabled by default. Added sendbrandinfo into auto-generated ini file. Edited Protocol18.cs to reflect this with an "if" statement before SendBrandInfo() is called upon. Fixed minor mistake of not adding chatbotmessages into Parsemode. Parsemode.Default was being used.
This commit is contained in:
parent
385a1f99b1
commit
1223c91d79
2 changed files with 8 additions and 1 deletions
|
|
@ -140,7 +140,10 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
SendPacket(0x00, packetData);
|
||||
break;
|
||||
case 0x01: //Join game
|
||||
SendBrandInfo();
|
||||
if (Settings.SendBrandInfoEnabled.Equals(true))
|
||||
{
|
||||
SendBrandInfo();
|
||||
}
|
||||
break;
|
||||
case 0x02: //Chat message
|
||||
handler.OnTextReceived(ChatParser.ParseText(readNextString(ref packetData)));
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ namespace MinecraftClient
|
|||
public static bool playerHeadAsIcon = false;
|
||||
public static string chatbotLogFile = "";
|
||||
public static bool CacheScripts = true;
|
||||
public static bool SendBrandInfoEnabled = true;
|
||||
|
||||
//AntiAFK Settings
|
||||
public static bool AntiAFK_Enabled = false;
|
||||
|
|
@ -139,6 +140,7 @@ namespace MinecraftClient
|
|||
case "proxy": pMode = ParseMode.Proxy; break;
|
||||
case "appvars": pMode = ParseMode.AppVars; break;
|
||||
case "autorespond": pMode = ParseMode.AutoRespond; break;
|
||||
case "chatbotmessages": pMode = ParseMode.ChatBotMessages; break;
|
||||
default: pMode = ParseMode.Default; break;
|
||||
}
|
||||
}
|
||||
|
|
@ -166,6 +168,7 @@ namespace MinecraftClient
|
|||
case "mcversion": ServerVersion = argValue; break;
|
||||
case "splitmessagedelay": splitMessageDelay = TimeSpan.FromSeconds(str2int(argValue)); break;
|
||||
case "scriptcache": CacheScripts = str2bool(argValue); break;
|
||||
case "sendbrandinfo": SendBrandInfoEnabled = str2bool(argValue); break;
|
||||
|
||||
case "botowners":
|
||||
Bots_Owners.Clear();
|
||||
|
|
@ -386,6 +389,7 @@ namespace MinecraftClient
|
|||
+ "exitonfailure=false\r\n"
|
||||
+ "scriptcache=true\r\n"
|
||||
+ "timestamps=false\r\n"
|
||||
+ "sendbrandinfo=true\r\n"
|
||||
+ "\r\n"
|
||||
+ "[AppVars]\r\n"
|
||||
+ "#yourvar=yourvalue\r\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue