Synchronize rate limit variables and limit PlayerMsg hook
Synchronize the rate limit and apply it on the PlayerMsg
hook to eliminate any risks of desyncs caused by the engine. This makes sure that the rate limiter actually have an effect on custom chats implemented in Lua, since without it, Lua writers are going to be forced to re-implement a mechanism that the engine would've otherwise already provided.
Fixes #1289 (closed)