Example #1
0
        public override void AttemptGotMessage(BasePlayer player, Message message)
        {
            var type = message.Type;

            if (type != null)
            {
                if (type == "auth")
                {
                    var id = message.GetString(0U);
                    if (id.Substring(0, 5) == "armor")
                    {
                        player.Send("auth", new object[]
                        {
                            MatchMaker.Create(id, this.secret)
                        });
                    }
                }
            }
        }