Spam, caps and advertising, stopped before anyone reads them

CHAT GUARD
Spam, caps and advertising, stopped before anyone reads them
free · one plugin · fully configurable
Six lines in two seconds, a shout in capitals, somebody pasting their own server address. Three different annoyances, and every one of them is the same job: read the line before it goes out and decide.
The parts run cheapest first, and each one is its own switch. Turn off what you do not want, leave the rest.
Drop in the jar, start the server. Repeats, pace, caps and ads are on.
What it does
- Repeats — the same line twice in a row is refused, and near-enough counts too
- Pace — a minimum gap between messages, and a separate one for commands
- CAPITALS — above a share of the line it is lowercased rather than refused, which annoys people less
- Advertising — addresses and IPs, with a whitelist so your own Discord link still goes through
- A word list — mask with stars or refuse the line, your choice, and leetspeak does not get past it
- A staff line — repeat offenders are reported to whoever holds the permission, not to the whole server
- /chatclear — wipe the chat window for everybody
The parts that usually get this wrong
An ad filter built on a regular expression flags 1.21.1 as a server address, and the sentence come here.Then we go as a domain. This one carries a list of real endings instead, and the two-letter ones that are also words are deliberately not on it.
Capitals are lowercased, not refused, so somebody who is just excited is not told off. And the word list comes in two marked blocks, slurs and ordinary swearing, so a server that does not mind swearing deletes one block and keeps the other.
Requirements
- Bukkit, Spigot, Paper or Folia — 1.21 up to the current release
- Java 21 or newer
- Nothing else — no database, no library jar
Built against the Spigot API, so nothing in it can quietly depend on Paper. Tested on CraftBukkit 1.21.1, Spigot 1.21.1, Paper 1.21.1, Paper 26.2 and Folia 26.2.
Commands and permissions
- /chatguard status which parts are on right now
- /chatguard reload re-read the configuration
- /chatclear wipe the chat — alias /clearchat
skchatguard.bypass skips every check, skchatguard.notify receives the staff line, and skchatguard.clear, skchatguard.reload and skchatguard.admin do what they say. All operator by default.
Configuration
- settings.yml every part, every threshold and every message
Every setting is commented — what it does, and why it is set that way.
Built to be left alone
Nothing runs on a timer. The plugin only ever does work when somebody types.
Folia-ready: the chat handler runs off the main thread, and every message it sends is resolved before it is handed to a region.
No strings attached
No licence key, no whitelist, no phone-home, no statistics. The plugin opens no network connection at all. Free to use and to rebrand on as many servers as you like.
Support
Discord: discord.gg/cJDH38CUtu
If it works for you, following the project means a lot.
Information
Pinned Versions
- R1.21–26.2
Pages
Members
1Owner