private void CommandAuth(IPlayer player, string command, string[] args) { // Already authenticated-check if (PlayerData.FindByGame(player.Id) != null) { player.Reply(GetMsg("Already Authenticated", player.Id), _config.Prefix); return; } var info = KeyInfo.FindByID(player.Id); var code = GenerateCode(); if (info == null) { info = new KeyInfo(); _keys.Add(info); } info.Key = code; info.Player = player; info.ResetValidUntil(); player.Reply(GetMsg("Code Generation", player.Id).Replace("{code}", code)); }