Exemplo n.º 1
0
        public virtual PlayerActionKick ParsePlayerActionKick(string text)
        {
            //[INFO]  Bertware lost connection: test
            //[INFO]  Bertware left the game.
            //[INFO]  CONSOLE: Kicked player Bertware. With reason:
            //test
            PlayerActionKick leave = new PlayerActionKick();

            leave.PlayerName = Regex.Match(text, RG_FSPACE + RG_PLAYER).Value.Trim();
            leave.Details    = Regex.Match(text, ":" + RG_WILDCARD + RG_EOL).Value.TrimStart(':').Trim();
            return(leave);
        }
Exemplo n.º 2
0
        public virtual PlayerActionKick ParsePlayerActionKick(string text)
        {
            //[INFO]  Bertware lost connection: test
            //[INFO]  Bertware left the game.
            //[INFO]  CONSOLE: Kicked player Bertware. With reason:
            //test
            PlayerActionKick leave = new PlayerActionKick
            {
                PlayerName = Regex.Match(text, RG_FSPACE + RG_PLAYER).Value.Trim(),
                Details    = Regex.Match(text, ":(.*)$").Groups[1].Value
            };

            return(leave);
        }