Closed cartman-2000 closed 6 years ago
The OnPlayerChatted "rich" parameter has not been adapted on purpose, to keep backwards compatibililty. The handler has been already fixed, as "tellChat" SteamCalls have been: https://github.com/RocketMod/Rocket.Unturned/commit/5f6671cb1dfbf5f29007caec49dac0efa7f07a61 https://github.com/RocketMod/Rocket.Unturned/commit/62cd8e8d6c780b5b46bba4ee1dbddaf72224f064
(This PR wouldn't solve the encoding bug on chat, as it does not fix tellChat missing parameter)
For OnPlayerChatted we either need to create a new, additional event - or break many plugins.
Yes, the parameter needs to be added sooner or later
This fixes the events for normal player chat, and adds the isRich to the OnPlayerChatted event. Plugins that use the OnPlayerChatted would need to update.