private void AccountLoggingKickedMessageHandler(DofusClient client, AccountLoggingKickedMessage message) { client.Logger.Log( $"Compte kick pour {message.Days} jours, {message.Hours} heures, {message.Minutes} minutes :'( ", LogMessageType.Public); client.Dispose(); }
public static void AccountLoggingKickedMessageTreatment(Message message, byte[] packetDatas, AccountUC account) { AccountLoggingKickedMessage btmsg = (AccountLoggingKickedMessage)message; using (BigEndianReader reader = new BigEndianReader(packetDatas)) { btmsg.Deserialize(reader); } account.Log(new ErrorTextInformation(String.Format("Compte banni {0} jours, {1} heures, {2} minutes :'( ", btmsg.days, btmsg.hours, btmsg.minutes)), 0); }
public static Task HandleAccountLoggingKickedMessage(Account account, AccountLoggingKickedMessage message) => Task.Run(() => { var until = DateTime.Now.AddDays(message.Days).AddHours(message.Hours).AddMinutes(message.Minutes); account.Logger.LogError("", LanguageManager.Translate("559", until.ToString("G"))); });