Example #1
0
        public void SendChatInfo(IConnection connection, int type, string name)
        {
            Player pl = PlayerService.GetPlayerByName(name.Replace("[GM]", ""));

            if (pl == null || pl.Equals(connection.Player))
            {
                return;
            }

            new SpChatInfo(pl, type).Send(connection);
        }
Example #2
0
        public void ProcessPrivateMessage(IConnection connection, string playerName, string message)
        {
            Player pl = PlayerService.GetPlayerByName(playerName);

            if (pl == null)
            {
                return;
            }

            ProcessMessage(connection, message, ChatType.PrivateWhispered);

            new SpChatPrivate(connection.Player.PlayerData.Name, pl.PlayerData.Name, message).Send(pl);
        }