Lewati ke konten
EN

Konfigurasi

Halaman ini mendokumentasikan file configuration yang dapat diedit untuk NyxoraChatManager, termasuk shipped default exact dan apply behavior yang sudah diverifikasi.

File Fungsi
plugins/NyxoraChatManager/config.yml Main administrator configuration.
plugins/NyxoraChatManager/lang/en_id.yml Message Bahasa Indonesia untuk player.
plugins/NyxoraChatManager/lang/en_us.yml Message English untuk player.

Persistent runtime Chat state didokumentasikan terpisah di Storage.

# 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: 3
Key Type Default Deskripsi
language String en_id Memilih en_id atau en_us; value unsupported fallback ke en_id dengan warning.
prefix String &e&lCHAT &a/ Prefix message plugin; mendukung formatting legacy & dan HEX &#RRGGBB.
clear-chat-lines Integer 100 Blank line dari /chat clear; effective range di-clamp ke 1 sampai 500.
anti-toxic.enabled Boolean true Mengaktifkan AntiToxic.
anti-toxic.patterns String list 58 shipped patterns Hanya 128 entry pertama diproses; tiap entry maksimal 256 karakter dan harus lolos regex safety validation.
anti-spam.enabled Boolean true Mengaktifkan duplicate dan repeated-character AntiSpam checks.
anti-spam.duplicate.max-consecutive Integer 4 Harus positif, di-clamp maksimal 1000.
anti-spam.duplicate.reset-after-seconds Integer 15 Harus positif, maksimal 604800 detik.
anti-spam.repeated-characters.max-consecutive Integer 5 Harus positif, di-clamp maksimal 1000.
anti-flood.enabled Boolean true Mengaktifkan AntiFlood.
anti-flood.burst-messages Integer 5 Harus positif, di-clamp maksimal 1000.
anti-flood.burst-window-seconds Integer 3 Harus positif, maksimal 604800 detik.
anti-flood.cooldown-seconds Integer 3 Harus positif, maksimal 604800 detik.

YAML type yang salah membuat configuration preparation gagal dan tidak dikonversi diam-diam. Bounded integer zero atau negative menggunakan built-in fallback dengan warning; value di atas safety maximum di-clamp dengan warning.

Untuk layout configuration lama, source juga membaca anti-spam.duplicate-window-seconds ketika anti-spam.duplicate.reset-after-seconds tidak ada, dan anti-spam.max-consecutive-identical-characters ketika anti-spam.repeated-characters.max-consecutive tidak ada.

Plugin mendukung tepat en_id dan en_us. Selected language file yang hilang disalin dari bundled resource. Bundled default juga dipasang sebagai YAML defaults agar message key yang hilang dapat fallback ke shipped content.

Formatting mendukung legacy & color/format code dan HEX &#RRGGBB. Raw MiniMessage syntax di-escape dan ditampilkan literal.

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."
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."
Area Metode Apply Behavior Terverifikasi
General config.yml settings /chat reload Candidate config dan language disiapkan sebelum runtime publication.
Language selection dan selected language file /chat reload Message snapshot baru dipublish hanya setelah preparation berhasil.
AntiToxic patterns /chat reload Individual entry invalid atau unsafe dilewati dengan warning.
Feature enabled values /chat reload atau feature on/off command Feature command menyimpan key enabled terkait sebelum runtime transition diterapkan.
Plugin JAR Full server restart /chat reload tidak mengganti plugin code.

Jika reload preparation gagal, runtime configuration dan language snapshot sebelumnya tetap aktif.