/// <summary> /// Called when a server was successfully joined /// </summary> public void OnGameJoined() { if (!String.IsNullOrWhiteSpace(Settings.BrandInfo)) { handler.SendBrandInfo(Settings.BrandInfo.Trim()); } if (Settings.MCSettings_Enabled) { handler.SendClientSettings( Settings.MCSettings_Locale, Settings.MCSettings_RenderDistance, Settings.MCSettings_Difficulty, Settings.MCSettings_ChatMode, Settings.MCSettings_ChatColors, Settings.MCSettings_Skin_All, Settings.MCSettings_MainHand); } foreach (ChatBot bot in bots) { bot.AfterGameJoined(); } if (inventoryHandlingRequested) { inventoryHandlingRequested = false; inventoryHandlingEnabled = true; ConsoleIO.WriteLogLine("Inventory handling is now enabled."); } }
/// <summary> /// Called when a server was successfully joined /// </summary> public void OnGameJoined() { if (!String.IsNullOrWhiteSpace(Settings.BrandInfo)) { handler.SendBrandInfo(Settings.BrandInfo.Trim()); } foreach (ChatBot bot in bots) { bot.AfterGameJoined(); } }
public void OnGameJoined() { if (!String.IsNullOrWhiteSpace(Settings.BrandInfo)) { handler.SendBrandInfo(Settings.BrandInfo.Trim()); } if (Settings.MCSettings_Enabled) { handler.SendClientSettings( Settings.MCSettings_Locale, Settings.MCSettings_RenderDistance, Settings.MCSettings_Difficulty, Settings.MCSettings_ChatMode, Settings.MCSettings_ChatColors, Settings.MCSettings_Skin_All, Settings.MCSettings_MainHand); } player.OnJoin(); }
/// <summary> /// Called when a server was successfully joined /// </summary> public void OnGameJoined() { if (!String.IsNullOrWhiteSpace(Settings.BrandInfo)) { handler.SendBrandInfo(Settings.BrandInfo.Trim()); } if (Settings.MCSettings_Enabled) { handler.SendClientSettings( Settings.MCSettings_Locale, Settings.MCSettings_RenderDistance, Settings.MCSettings_Difficulty, Settings.MCSettings_ChatMode, Settings.MCSettings_ChatColors, Settings.MCSettings_Skin_All, Settings.MCSettings_MainHand); } foreach (ChatBot bot in bots) { bot.AfterGameJoined(); } if (Settings.MessageOnConnect) { if (Settings.SendLink) { SendText("just connected using Minecraft Console Client; Link: " + Settings.DL_URL); } else { SendText("just connected using Minecraft Console Client"); } lastSentTime = DateTime.Now.Ticks; } }