What is it?
Simple plugin to block disconnect messages from clients when they leave the server. This blocks the known exploit with the custom disconnect which can be used to kick everyone from a server and such.
How to use?
Simply compile it yourself, or download the compiled version here and use it.
Can I change the message shown?
Yes, a cvar has been added to allow you to set a custom disconnect message, simply add the following to your server.cfg:
PHP Code:
disconnect_message "Your reason here."
The cvar has a max length of 64 chars, I don't know what the max size is for a valid disconnect message, if anyone knows it I will adjust as needed. I set it to 64 for now as a base. I suggest not using long messages though.
Changes
v1.1.0
- Removed unneeded UnhookEvent call.
- Removed unneeded events. (OnMapStart/OnMapEnd)
- Added cvar for custom message since people kept asking.
v1.0.0
- Initial release.