Configuration
This page documents the user-editable configuration files used by NyxoraChatManager, including exact shipped defaults and verified apply behavior.
Configuration Files
Section titled “Configuration Files”| File | Purpose |
|---|---|
plugins/NyxoraChatManager/config.yml |
Main administrator configuration. |
plugins/NyxoraChatManager/lang/en_id.yml |
Indonesian player-facing messages. |
plugins/NyxoraChatManager/lang/en_us.yml |
English player-facing messages. |
Persistent runtime Chat state is documented separately in Storage.
config.yml
Section titled “config.yml”Default Configuration
Section titled “Default Configuration”# NyxoraChatManager configuration# Documentation and comments are intentionally written in English.# Player-facing localization is controlled by the language option below.
language: en_id# Formatting: legacy & codes and &#RRGGBB HEX only.prefix: "&e&lCHAT &a/ "
# Safety range: 1-500. Values above 500 are clamped at runtime.clear-chat-lines: 100
anti-toxic: enabled: true
# Raw Java regular expressions matched against moderation-only normalized text. # Unsafe backtracking constructs are rejected and runtime matching is operation-limited. # The plugin accepts up to 128 patterns and up to 256 characters per pattern. patterns: # Indonesian profanity / insults and common leetspeak or separator variants. - '(?iu)\bk[\W_]*[o0][\W_]*n[\W_]*t[\W_]*[o0][\W_]*l(?:[\W_]*(?:nya|mu|ku))?\b' - '(?iu)\bm[\W_]*[e3][\W_]*m[\W_]*[e3][\W_]*k(?:[\W_]*(?:nya|mu|ku))?\b' - '(?iu)\bng[\W_]*[e3][\W_]*n[\W_]*t[\W_]*[o0][\W_]*t(?:[\W_]*(?:nya|mu|ku))?\b' - '(?iu)\bngentod\b' - '(?iu)\bb[a4]ngs[a4]t(?:nya|mu|ku)?\b' - '(?iu)\banj[i1!]ng(?:nya|mu|ku)?\b' - '(?iu)\banj(?:ir|ay|rit)\b' - '(?iu)\basu\b' - '(?iu)\bjanc(?:ok|uk)\b' - '(?iu)\bpantek\b' - '(?iu)\bg[o0]bl[o0]k(?:nya|mu|ku)?\b' - '(?iu)\bt[o0]l[o0]l(?:nya|mu|ku)?\b' - '(?iu)\bbajingan\b' - '(?iu)\bkeparat\b' - '(?iu)\bbrengsek\b' - '(?iu)\bkampret\b' - '(?iu)\bb[a4]b[i1!](?:nya|mu|ku)?\b' - '(?iu)\blonte\b' - '(?iu)\bpelacur\b' - '(?iu)\bta(?:i|hi)\b' - '(?iu)\bsialan\b' - '(?iu)\bpecun\b' - '(?iu)\bkimak\b' - '(?iu)\bpukimak\b' - '(?iu)\bceleng\b' - '(?iu)\bsetan\b' - '(?iu)\bib(?:lis|liss)\b' - '(?iu)\bmonyet\b' - '(?iu)\bbedebah\b'
# English profanity / slurs with common leetspeak and separator variants. - '(?iu)\bf[\W_]*[u4][\W_]*c[\W_]*k(?:s|ed|er|ers|ing|in)?\b' - '(?iu)\bsh[\W_]*[i1!][\W_]*t(?:s|ty|tier|tiest|ting|ted)?\b' - '(?iu)\bb[i1!][\W_]*tch(?:es|y|ing|ed)?\b' - '(?iu)\basshole(?:s)?\b' - '(?iu)\bass(?:es)?\b' - '(?iu)\bd[i1!][\W_]*ck(?:s)?\b' - '(?iu)\bc[o0][\W_]*ck(?:s)?\b' - '(?iu)\bp[u*][\W_]*ss(?:y|ies)\b' - '(?iu)\bc[u*][\W_]*nt(?:s)?\b' - '(?iu)\bmother[\W_]*f[u4][\W_]*c[\W_]*k(?:s|ed|er|ers|ing|in)?\b' - '(?iu)\bbastard(?:s)?\b' - '(?iu)\bwhore(?:s)?\b' - '(?iu)\bslut(?:s|ty)?\b' - '(?iu)\bretard(?:ed)?\b' - '(?iu)\bfag(?:got)?\b' - '(?iu)\bn[i1!][\W_]*gg(?:a|er)(?:s)?\b' - '(?iu)\bpiss(?:ed|es|ing)?\b' - '(?iu)\bcrap(?:s|py)?\b' - '(?iu)\bdouche(?:bag)?\b' - '(?iu)\btwat\b' - '(?iu)\bbollocks\b' - '(?iu)\bprick\b' - '(?iu)\bjackass\b' - '(?iu)\bdumbass\b' - '(?iu)\bwtf\b' - '(?iu)\bstfu\b' - '(?iu)\bsuck[\W_]+my[\W_]+d[i1!]ck\b' - '(?iu)\bson[\W_]+of[\W_]+a[\W_]+b[i1!]tch\b' - '(?iu)\bpiece[\W_]+of[\W_]+sh[i1!]t\b'
anti-spam: enabled: true duplicate: # The same normalized message may be sent four times consecutively. # The fifth consecutive duplicate is blocked. # Safety maximum: 1000. max-consecutive: 4 # Safety maximum: 604800 seconds (7 days). reset-after-seconds: 15 repeated-characters: # Six or more identical consecutive characters are blocked by default. # Safety maximum: 1000. max-consecutive: 5
anti-flood: enabled: true # Five accepted public messages may be sent inside a three-second burst window. # The sixth message is blocked and starts a three-second cooldown. # Safety maximum: 1000. burst-messages: 5 # Safety maximum: 604800 seconds (7 days). burst-window-seconds: 3 # Safety maximum: 604800 seconds (7 days). cooldown-seconds: 3Configuration Reference
Section titled “Configuration Reference”| Key | Type | Default | Description |
|---|---|---|---|
language |
String | en_id |
Selects en_id or en_us; unsupported values fall back to en_id with a warning. |
prefix |
String | &e&lCHAT &a/ |
Prefix for plugin messages; legacy & and &#RRGGBB HEX formatting is supported. |
clear-chat-lines |
Integer | 100 |
Blank lines sent by /chat clear; effective range is clamped to 1 through 500. |
anti-toxic.enabled |
Boolean | true |
Enables AntiToxic. |
anti-toxic.patterns |
String list | 58 shipped patterns | First 128 entries are processed; each entry is limited to 256 characters and must pass regex safety validation. |
anti-spam.enabled |
Boolean | true |
Enables duplicate and repeated-character AntiSpam checks. |
anti-spam.duplicate.max-consecutive |
Integer | 4 |
Positive value, clamped to a maximum of 1000. |
anti-spam.duplicate.reset-after-seconds |
Integer | 15 |
Positive value, maximum 604800 seconds. |
anti-spam.repeated-characters.max-consecutive |
Integer | 5 |
Positive value, clamped to a maximum of 1000. |
anti-flood.enabled |
Boolean | true |
Enables AntiFlood. |
anti-flood.burst-messages |
Integer | 5 |
Positive value, clamped to a maximum of 1000. |
anti-flood.burst-window-seconds |
Integer | 3 |
Positive value, maximum 604800 seconds. |
anti-flood.cooldown-seconds |
Integer | 3 |
Positive value, maximum 604800 seconds. |
Wrong YAML types fail configuration preparation instead of being silently converted. A bounded integer that is zero or negative uses its built-in fallback with a warning; values above the documented safety maximum are clamped with a warning.
For older configuration layouts, the source also reads anti-spam.duplicate-window-seconds when anti-spam.duplicate.reset-after-seconds is absent, and anti-spam.max-consecutive-identical-characters when anti-spam.repeated-characters.max-consecutive is absent.
Language Files
Section titled “Language Files”The plugin supports exactly en_id and en_us. Missing selected language files are copied from bundled resources. Bundled defaults are attached as YAML defaults so missing message keys can fall back to shipped content.
Formatting supports legacy & color/format codes and &#RRGGBB HEX. Raw MiniMessage syntax is escaped and displayed literally.
lang/en_id.yml
Section titled “lang/en_id.yml”messages: no_permission: "&cKamu tidak memiliki permission &e%permission%&c." invalid_usage: "&cPenggunaan command tidak valid. Gunakan &e/chat help&c." invalid_duration: "&cDurasi &e%duration% &ctidak valid. Gunakan format seperti &e30s&c, &e1m&c, atau &e1h&c." state_persistence_failed: "&cPerubahan status Chat tidak dapat disimpan. Tidak ada perubahan yang diterapkan." config_persistence_failed: "&cPerubahan fitur tidak dapat disimpan. Tidak ada perubahan yang diterapkan."
chat_enabled: "&aChat telah diaktifkan oleh &e%player%&a." chat_disabled: "&cChat telah dimatikan oleh &e%player%&c." chat_paused: "&cChat telah dijeda selama &e%duration% &coleh &e%player%&c." chat_resumed_auto: "&aChat telah tersedia kembali." chat_already_enabled: "&eChat sudah dalam keadaan aktif." chat_already_disabled: "&eChat sudah dalam keadaan nonaktif." chat_blocked: "&cChat sedang dinonaktifkan." chat_blocked_timed: "&cChat sedang dijeda. Coba lagi dalam &e%duration%&c." chat_cleared: "&aChat telah dibersihkan oleh &e%player%&a."
reloaded: "&aConfiguration dan language NyxoraChatManager berhasil dimuat ulang." reload_failed: "&cReload NyxoraChatManager gagal. Runtime configuration sebelumnya tetap digunakan."
feature_enabled: "&aFitur &e%feature% &atelah diaktifkan." feature_disabled: "&aFitur &e%feature% &atelah dinonaktifkan." feature_status: "&7Status &e%feature%&7: &e%status%&7."
anti_toxic_blocked: "&cPesanmu mengandung kata yang tidak diperbolehkan." anti_spam_duplicate: "&cJangan mengirim pesan yang sama berulang kali." anti_spam_repeated: "&cPesanmu mengandung terlalu banyak karakter yang sama secara berurutan." anti_flood_cooldown: "&cKamu mengirim chat terlalu cepat. Tunggu &e%duration%&c."
status_header: "&6=------= &e&lSTATUS &6[&eCHAT&6] &6=------=" status_chat: "&7Chat: &e%status%" status_chat_timer: "&7Chat resume: &e%duration%" status_antitoxic: "&7AntiToxic: &e%status%" status_antispam: "&7AntiSpam: &e%status%" status_antiflood: "&7AntiFlood: &e%status%"
help_header: "&6=------= &e&lHELP &6[&eCHAT&6] &6=------=" help_lines: - "&e/chat on &7- &fAktifkan Chat." - "&e/chat off &7- &fMatikan Chat tanpa batas waktu." - "&e/chat off <duration> &7- &fJeda Chat, contoh &e/chat off 5m&f." - "&e/chat clear &7- &fBersihkan public chat." - "&e/chat status &7- &fLihat status Chat dan filter." - "&e/chat antitoxic <on|off|status> &7- &fKelola AntiToxic." - "&e/chat antispam <on|off|status> &7- &fKelola AntiSpam." - "&e/chat antiflood <on|off|status> &7- &fKelola AntiFlood." - "&e/chat reload &7- &fMuat ulang configuration dan language." - "&e/chat help &7- &fTampilkan bantuan ini."lang/en_us.yml
Section titled “lang/en_us.yml”messages: no_permission: "&cYou do not have permission &e%permission%&c." invalid_usage: "&cInvalid command usage. Use &e/chat help&c." invalid_duration: "&cDuration &e%duration% &cis invalid. Use a format such as &e30s&c, &e1m&c, or &e1h&c." state_persistence_failed: "&cThe Chat state could not be persisted. No change was applied." config_persistence_failed: "&cThe feature setting could not be persisted. No change was applied."
chat_enabled: "&aChat has been enabled by &e%player%&a." chat_disabled: "&cChat has been disabled by &e%player%&c." chat_paused: "&cChat has been paused for &e%duration% &cby &e%player%&c." chat_resumed_auto: "&aChat is available again." chat_already_enabled: "&eChat is already enabled." chat_already_disabled: "&eChat is already disabled." chat_blocked: "&cChat is currently disabled." chat_blocked_timed: "&cChat is currently paused. Try again in &e%duration%&c." chat_cleared: "&aChat has been cleared by &e%player%&a."
reloaded: "&aNyxoraChatManager configuration and language were reloaded successfully." reload_failed: "&cNyxoraChatManager reload failed. The previous runtime configuration remains active."
feature_enabled: "&aFeature &e%feature% &ahas been enabled." feature_disabled: "&aFeature &e%feature% &ahas been disabled." feature_status: "&7Status &e%feature%&7: &e%status%&7."
anti_toxic_blocked: "&cYour message contains a word that is not allowed." anti_spam_duplicate: "&cDo not send the same message repeatedly." anti_spam_repeated: "&cYour message contains too many identical consecutive characters." anti_flood_cooldown: "&cYou are chatting too quickly. Wait &e%duration%&c."
status_header: "&6=------= &e&lSTATUS &6[&eCHAT&6] &6=------=" status_chat: "&7Chat: &e%status%" status_chat_timer: "&7Chat resume: &e%duration%" status_antitoxic: "&7AntiToxic: &e%status%" status_antispam: "&7AntiSpam: &e%status%" status_antiflood: "&7AntiFlood: &e%status%"
help_header: "&6=------= &e&lHELP &6[&eCHAT&6] &6=------=" help_lines: - "&e/chat on &7- &fEnable Chat." - "&e/chat off &7- &fDisable Chat indefinitely." - "&e/chat off <duration> &7- &fPause Chat, for example &e/chat off 5m&f." - "&e/chat clear &7- &fClear public chat." - "&e/chat status &7- &fView Chat and filter status." - "&e/chat antitoxic <on|off|status> &7- &fManage AntiToxic." - "&e/chat antispam <on|off|status> &7- &fManage AntiSpam." - "&e/chat antiflood <on|off|status> &7- &fManage AntiFlood." - "&e/chat reload &7- &fReload configuration and language." - "&e/chat help &7- &fShow this help."Applying Configuration Changes
Section titled “Applying Configuration Changes”| Area | Apply Method | Verified Behavior |
|---|---|---|
General config.yml settings |
/chat reload |
Candidate config and language are prepared before runtime publication. |
| Language selection and selected language file | /chat reload |
New message snapshot is published only after preparation succeeds. |
| AntiToxic patterns | /chat reload |
Invalid or unsafe individual entries are skipped with warnings. |
Feature enabled values |
/chat reload or feature on/off command |
Feature commands persist their own enabled key before applying the runtime transition. |
| Plugin JAR | Full server restart | /chat reload does not replace plugin code. |
If reload preparation fails, the previous runtime configuration and language snapshot remain active.