Exemple #1
0
        /// <summary>
        /// When overridden in the derived class, handles text that was not a command.
        /// </summary>
        /// <param name="user">The user the <paramref name="text"/> came from.</param>
        /// <param name="text">The text that wasn't a command.</param>
        protected override void HandleNonCommand(User user, string text)
        {
            ThreadAsserts.IsMainThread();

            using (var pw = ServerPacket.ChatSay(user.Name, user.MapEntityIndex, text))
            {
                user.Map.SendToArea(user, pw, ServerMessageType.GUIChat);
            }

            EventCounterManager.User.Increment(user.ID, UserEventCounterType.ChatLocalTimes);
            EventCounterManager.User.Increment(user.ID, UserEventCounterType.ChatLocalChars, text.Length);
        }