This program propagates bans to all connected servers, preventing banned players from switching servers to continue being a shithead. The plan for this is for it to eventually be used on all official KAG servers. However, feel free to use this on your own servers if you need to shit on the shitheads.
-
Add servers to
config.json
-
Optionally adjust the reconnect interval at the top of
src/server.ts
-
Compile the program using
npm run-script compile
-
Create an AngelScript file with the following code and add it to the
gamemode.cfg
of every gamemode your servers host:#define SERVER_ONLY void onBan(const string username, const int minutes, const string reason) { tcpr("BAN " + username + " " + minutes + " " + reason); } void onUnban(const string username) { tcpr("UNBAN " + username); }
-
Ensure the following settings are applied to
autoconfig.cfg
:sv_tcpr = 1
sv_tcpr_timestamp = 0
-
Run the program using
npm run-script run
- Build:
docker build . -tkag-propagate-bans
- Run:
docker run -d --rm -v config.json:/kag-propagate-bans/config.json kag-propagate-bans