mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Added / Cleaned Enable features of Chat Messages
This commit is contained in:
parent
b233b60aba
commit
1abb46b8ca
2 changed files with 17 additions and 2 deletions
|
|
@ -306,7 +306,8 @@ namespace MinecraftClient
|
||||||
&& text.IndexOf('*') < text.IndexOf('<')
|
&& text.IndexOf('*') < text.IndexOf('<')
|
||||||
&& text.IndexOf('<') < text.IndexOf('>')
|
&& text.IndexOf('<') < text.IndexOf('>')
|
||||||
&& text.IndexOf('>') < text.IndexOf(' ')
|
&& text.IndexOf('>') < text.IndexOf(' ')
|
||||||
&& text.IndexOf(' ') < text.IndexOf(':'))
|
&& text.IndexOf(' ') < text.IndexOf(':')
|
||||||
|
&& Settings.Unknown_Chat_Plugin_Messages_One_Enabled.Equals(true))
|
||||||
{
|
{
|
||||||
string prefix = tmp[0];
|
string prefix = tmp[0];
|
||||||
string user = tmp[1];
|
string user = tmp[1];
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,10 @@ namespace MinecraftClient
|
||||||
public static bool RemoteCtrl_Enabled = false;
|
public static bool RemoteCtrl_Enabled = false;
|
||||||
public static bool RemoteCtrl_AutoTpaccept = true;
|
public static bool RemoteCtrl_AutoTpaccept = true;
|
||||||
public static bool RemoteCtrl_AutoTpaccept_Everyone = false;
|
public static bool RemoteCtrl_AutoTpaccept_Everyone = false;
|
||||||
|
|
||||||
|
//Chat Message Enabled / Disabled.
|
||||||
public static bool Hero_Chat_Messages_Enabled = true;
|
public static bool Hero_Chat_Messages_Enabled = true;
|
||||||
|
public static bool Unknown_Chat_Plugin_Messages_One_Enabled = true;
|
||||||
|
|
||||||
//Auto Respond
|
//Auto Respond
|
||||||
public static bool AutoRespond_Enabled = false;
|
public static bool AutoRespond_Enabled = false;
|
||||||
|
|
@ -100,7 +103,7 @@ namespace MinecraftClient
|
||||||
private static readonly Dictionary<string, KeyValuePair<string, string>> Accounts = new Dictionary<string, KeyValuePair<string, string>>();
|
private static readonly Dictionary<string, KeyValuePair<string, string>> Accounts = new Dictionary<string, KeyValuePair<string, string>>();
|
||||||
private static readonly Dictionary<string, KeyValuePair<string, ushort>> Servers = new Dictionary<string, KeyValuePair<string, ushort>>();
|
private static readonly Dictionary<string, KeyValuePair<string, ushort>> Servers = new Dictionary<string, KeyValuePair<string, ushort>>();
|
||||||
|
|
||||||
private enum ParseMode { Default, Main, AppVars, Proxy, AntiAFK, Hangman, Alerts, ChatLog, AutoRelog, ScriptScheduler, RemoteControl, AutoRespond };
|
private enum ParseMode { Default, Main, AppVars, Proxy, AntiAFK, Hangman, Alerts, ChatLog, AutoRelog, ScriptScheduler, RemoteControl, ChatBotMessages, AutoRespond };
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Load settings from the give INI file
|
/// Load settings from the give INI file
|
||||||
|
|
@ -287,6 +290,15 @@ namespace MinecraftClient
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case ParseMode.ChatBotMessages:
|
||||||
|
switch (argName.ToLower())
|
||||||
|
{
|
||||||
|
case "herochatmessagesenabled": Hero_Chat_Messages_Enabled = str2bool(argValue); break;
|
||||||
|
case "unknownchatpluginmessagesone": Unknown_Chat_Plugin_Messages_One_Enabled = str2bool(argValue); break;
|
||||||
|
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case ParseMode.Proxy:
|
case ParseMode.Proxy:
|
||||||
switch (argName.ToLower())
|
switch (argName.ToLower())
|
||||||
{
|
{
|
||||||
|
|
@ -424,7 +436,9 @@ namespace MinecraftClient
|
||||||
+ "enabled=false\r\n"
|
+ "enabled=false\r\n"
|
||||||
+ "autotpaccept=true\r\n"
|
+ "autotpaccept=true\r\n"
|
||||||
+ "tpaccepteveryone=false\r\n"
|
+ "tpaccepteveryone=false\r\n"
|
||||||
|
+ "[ChatBotMessages]\r\n"
|
||||||
+ "herochatmessagesenabled=true\r\n"
|
+ "herochatmessagesenabled=true\r\n"
|
||||||
|
+ "unknownchatpluginmessagesone=true\r\n"
|
||||||
+ "\r\n"
|
+ "\r\n"
|
||||||
+ "[AutoRespond]\r\n"
|
+ "[AutoRespond]\r\n"
|
||||||
+ "enabled=false\r\n"
|
+ "enabled=false\r\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue