public static string FormatText(string Text, BPlayer Player)
 {
     if (Player != null)
     {
         return(Text.Replace("$_PID", Player.ID.ToString()).Replace("$_PNAME", Player.Name).Replace("$_PIP", Player.IP.ToString()).Replace("$_PSERIAL", Player.Serial).Replace("$_PVER", Player.GameVersion));
     }
     else
     {
         return(null);
     }
 }
        public override void RenLogEvent(string output)
        {
            if (output.Length > 28)
            {
                if (output.Substring(0, 28).ToLower().Contains("connection broken to client."))
                {
                    int     ID     = int.Parse(output.Substring(28, output.Length - 28));
                    BPlayer Player = Find(ID);

                    if (!String.IsNullOrEmpty(Message))
                    {
                        DA.HostMessage(FormatText(Message, Player));
                    }
                    if (GameLogEnabled)
                    {
                        DALogManager.WriteGameLog($"_CONNLOST {Player.Name} {Player.ID} {Player.Serial} {Player.IP} {Player.GameVersion}");
                    }
                }
            }
        }