mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Rename McTcpClient to McClient for clarity
+ Fix compile error in #1071
This commit is contained in:
parent
b52435f0ce
commit
2add4030f4
25 changed files with 36 additions and 36 deletions
|
|
@ -32,15 +32,15 @@ namespace MinecraftClient
|
|||
public enum DisconnectReason { InGameKick, LoginRejected, ConnectionLost, UserLogout };
|
||||
|
||||
//Handler will be automatically set on bot loading, don't worry about this
|
||||
public void SetHandler(McTcpClient handler) { this._handler = handler; }
|
||||
public void SetHandler(McClient handler) { this._handler = handler; }
|
||||
protected void SetMaster(ChatBot master) { this.master = master; }
|
||||
protected void LoadBot(ChatBot bot) { Handler.BotUnLoad(bot); Handler.BotLoad(bot); }
|
||||
private McTcpClient _handler = null;
|
||||
private McClient _handler = null;
|
||||
private ChatBot master = null;
|
||||
private List<string> registeredPluginChannels = new List<String>();
|
||||
private Queue<string> chatQueue = new Queue<string>();
|
||||
private DateTime lastMessageSentTime = DateTime.MinValue;
|
||||
private McTcpClient Handler
|
||||
private McClient Handler
|
||||
{
|
||||
get
|
||||
{
|
||||
|
|
@ -657,7 +657,7 @@ namespace MinecraftClient
|
|||
{
|
||||
if (Settings.DebugMessages)
|
||||
ConsoleIO.WriteLogLine(String.Format("[{0}] Disconnecting and Reconnecting to the Server", this.GetType().Name));
|
||||
McTcpClient.ReconnectionAttemptsLeft = ExtraAttempts;
|
||||
McClient.ReconnectionAttemptsLeft = ExtraAttempts;
|
||||
Program.Restart(delaySeconds);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue