Exemplo n.º 1
0
        //Rcon: "rcon challenge "password" command" from "ip:port"  [004.1]
        //Bad Rcon: "rcon challenge "password" command" from "ip:port"  [004.2]
        protected virtual void OnRconMsg(DateTime Timestamp, string[] info)
        {
            string[]      s         = info[5].Split(':');
            RconEventArgs eventArgs = new RconEventArgs()
            {
                Timestamp = Timestamp,
                IsValid   = info[0] == "Rcon: " ? true : false,
                Challenge = info[1].Split(' ')[1],
                Password  = info[2],
                Command   = info[3],
                Ip        = s[0],
                Port      = ushort.Parse(s[1])
            };

            RconMsg.Fire(ServerEndPoint, eventArgs);
        }
Exemplo n.º 2
0
        //Rcon: "rcon challenge "password" command" from "ip:port"  [004.1]
        //Bad Rcon: "rcon challenge "password" command" from "ip:port"  [004.2]
        protected virtual void OnRconMsg(DateTime Timestamp, string[] info)
        {
            string[] s = info[5].Split(':');
            RconEventArgs eventArgs = new RconEventArgs()
            {
                Timestamp = Timestamp,
                IsValid = info[0] == "Rcon: " ? true : false,
                Challenge = info[1].Split(' ')[1],
                Password = info[2],
                Command = info[3],
                Ip = s[0],
                Port = ushort.Parse(s[1])

            };
            RconMsg.Fire(ServerEndPoint, eventArgs);
        }