Project Zomboid servers can set up a custom chat filter with banned words and establish what happens when a player uses them. From a range of options, including banning, kicking, or logging the usage to a file, as well as hiding the word from the in-game chat. When used with various admin commands, this can help players effectively moderate a server and keep bad actors from ruining the experience.
Note: A chat filter requires panel-only steps. While some aspects can be changed from the admin menu, the panel is still required.
1. Log in to the BisectHosting Starbase panel.
2. Stop the server.
3. Go to the Files tab.
4. Open the Create dropdown and press Create File.
5. Enter the desired banned words, one per line.
6. Press Create File.
7. Enter BadWords.txt as the filename, and confirm to create the file.
8. Find the following directory: /home/container/.cache/Server
9. Open [SaveName].ini for editing. The .ini file is labeled depending on the Save/Config Name in the Startup tab.
10. From the BadWordListFile= section, enter BadWords.txt.
11. Choose the desired BadWordPolicy. 1 = Ban, 2 = Kick, 3 = Log, and 4 = Mute.
12. Set the BadWordReplacement to change what bad words appear as. [HIDDEN] will hide the word from chat entirely.
Note: Banned words listed in the file will always be replaced, regardless of
BadWordPolicy.
13. Press Save.
14. Start the server.