private void API_onChatCommand(Client sender, string command, CancelEventArgs cancel) { try { Console.WriteLine(command); Player p = Player.PlayerData[sender]; if (p.IsLogged) { CommandLogRepository.AddNew(new CommandLog(p.MasterId, p.Id, command)); } } catch (Exception) { } }