AntiToxic
Overview
Section titled “Overview”AntiToxic checks the player’s signed chat text against configured Java regular expressions before Chat state, AntiSpam, and AntiFlood decisions are completed.
The shipped configuration enables AntiToxic and contains 58 Indonesian and English patterns.
How It Works
Section titled “How It Works”Moderation text is normalized with Unicode NFKC normalization, selected default-ignorable code points are removed, and Unicode whitespace is normalized for moderation checks. This representation is separate from the chat content rendered to players.
Custom regex is protected by two layers:
- configuration-time validation rejects unsafe constructs before publication;
- runtime matching uses operation budgets to limit work even when a pattern passes static validation.
The plugin processes at most the first 128 configured entries and accepts at most 256 characters per pattern. Runtime matching is limited to 50,000 operations per pattern and 100,000 operations for the full AntiToxic pattern set per message.
If a pattern exceeds its per-pattern runtime budget, the current message is treated as blocked and that pattern is quarantined in the current AntiToxic runtime. A full configuration reload or AntiToxic feature transition creates a fresh runtime. Exceeding the total per-message budget also blocks the current message.
/chat antitoxic on/chat antitoxic off/chat antitoxic statusEdit custom patterns in config.yml, then use /chat reload to prepare and publish the new configuration.
Configuration
Section titled “Configuration”Relevant settings:
anti-toxic.enabledanti-toxic.patterns
Blank, overlength, syntactically invalid, or safety-rejected pattern entries are skipped with warnings. See Configuration for the exact shipped list and apply behavior.
Permissions
Section titled “Permissions”nyxorachatmanager.antitoxic— manage AntiToxic commands.nyxorachatmanager.antitoxic.bypass— bypass AntiToxic filtering.nyxorachatmanager.admin— administrative command override only.
Limitations
Section titled “Limitations”The safe custom-regex subset intentionally does not support every construct accepted by java.util.regex. Backreferences, lookbehind assertions, and other constructs rejected by the safety validator cannot be used as custom AntiToxic rules.