- Code: Select all
List<string> ignoredPlayers = new List<string>();
p.ExtraData[IgnoredKey] = ignoredPlayers;
List<string> ignored = (List<string>) p.ExtraData[IgnoredKey];
ismellike wrote:When you ignore and then unignore it sends messages 2x.
You don't have to send a message, it is handled by the default implementation. It works in a similar way to the chat filter. You can change the message but the default algorithm takes care of the displaying part. You can also tell the default algorithm that you already handled the event by setting e.Handled to true, then it won't do anything.
Also, in the switch statement, instead of current there should be e.ChatType.