Anti Spam Guard

About

A Paper *.20.* anti-spam and anti-flood plugin that enforces a 3-second cooldown between player messages. When a player attempts to send a message too quickly, the plugin cancels it and notifies them in Finglish (Persian written with Latin letters) that they must wait 2 more seconds. The plugin also detects message flooding by limiting repeated identical characters to a maximum of 5 occurrences per word. If a player exceeds this limit, the message is blocked and a Finglish warning is displayed telling them to stop flooding. Configurable cooldown duration, character repetition limit, and Finglish messages are stored in a YAML configuration file. The plugin uses Paper's event system to intercept chat events, tracks timestamps per player, and provides lightweight in-memory storage for cooldown tracking.