예제 #1
0
        public virtual PlayerActionBan ParsePlayerActionBan(string text)
        {
            //[INFO]  Bertware lost connection: Banned by admin.
            //[INFO]  Bertware left the game.
            //[INFO]  CONSOLE: Banned player bertware
            PlayerActionBan leave = new PlayerActionBan();

            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);
        }
예제 #2
0
        public virtual PlayerActionBan ParsePlayerActionBan(string text)
        {
            //[INFO]  Bertware lost connection: Banned by admin.
            //[INFO]  Bertware left the game.
            //[INFO]  CONSOLE: Banned player bertware
            PlayerActionBan leave = new PlayerActionBan
            {
                PlayerName = Regex.Match(text, RG_FSPACE + RG_PLAYER).Value.Trim(),
                Details    = Regex.Match(text, ":(.*)$").Groups[1].Value
            };

            return(leave);
        }