internal void OnUserRequestUpdatesEnabled(Client client) { if (OPT.SettingExists("disable.updating")) { ClientPackets.Instance.SC_SendUpdatesDisabled(client, OPT.GetInt("disable.updating")); } }
public void OnUserRequestDesKey(Client client) { if (OPT.SettingExists("des.key")) { if (debug) { Output.Write(new Message() { Text = string.Format("Client [{0}] requested des.key...", client.Id) }); } string desKey = OPT.GetString("des.key"); PacketStream stream = new PacketStream(0x9999); stream.WriteString(desKey); if (OPT.GetBool("debug")) { Output.Write(new Message() { Text = string.Format("[{0}] Sent!", desKey), AddBreak = true }); } ClientManager.Instance.Send(client, stream); } else { Output.Write(new Message() { Text = "Failed to find des.key in settings!", AddBreak = true }); } }
public void OnUserRequestDesKey(Client client) { if (OPT.SettingExists("des.key")) { string desKey = OPT.GetString("des.key"); PacketStream stream = new PacketStream(0x9999); stream.WriteString(desKey); if (OPT.GetBool("debug")) { Console.WriteLine("[{0}] Sent!", desKey); } ClientManager.Instance.Send(client, stream); } else { Console.WriteLine("Failed to find des.key in settings!"); } }