Skip to content
ID

AntiToxic

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.

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 status

Edit custom patterns in config.yml, then use /chat reload to prepare and publish the new configuration.

Relevant settings:

  • anti-toxic.enabled
  • anti-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.

  • nyxorachatmanager.antitoxic — manage AntiToxic commands.
  • nyxorachatmanager.antitoxic.bypass — bypass AntiToxic filtering.
  • nyxorachatmanager.admin — administrative command override only.

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.