Java SDK — Moderation

Moderation

Moderation.censor
public static CensorResponse censor(
    Client client,
    String text
) throws IOException

Calls POST /api/censor.php — the authoritative server check (max 1000 characters). Returns clean flag, the masked display-safe filtered text, and retryAfter on a 429 reply.

TextFilter — local checks
TextFilter.isClean(text)
TextFilter.filter(text)
TextFilter.isNameAllowed(name)
TextFilter.filterName(name, "Player")

Instant offline screening using the embedded salted-hash data — no request needed. The server stays authoritative: a missed local flag still fails server-side.