Skip to content

Configuration

DGun Otto edited this page Mar 11, 2024 · 10 revisions

AdvancedSensitiveWords Plugin Configuration Wiki

General Plugin Settings

Plugin

  • language

    • Description: 插件语言(zhcn/en) (需要重启服务器) / Plugin language (zhcn/en) (Requires server restart).
    • Default: zhcn
  • enableDefaultWords

    • Description: 是否启用默认词库(6w+) (强烈建议开启) / Whether to enable the default word library (60k+ words) (Strongly recommended).
    • Default: true
  • enableOnlineWords

    • Description: 是否启用在线词库 / Whether to enable the online word library.
    • Default: false
  • onlineWordsUrl

  • onlineWordsEncoding

    • Description: 在线文本字符编码(UTF-8/GBK) / Online words text encoding (UTF-8/GBK).
    • Default: UTF-8
  • logViolation

    • Description: 是否记录违规消息(存储在violations.log中) / Whether to log violations (stored in violations.log).
    • Default: true
  • noticeOperator

    • Description: 玩家违规时是否提醒管理员(需权限advancedsensitivewords.notice) / Notify operators when a player violates (Requires permission: advancedsensitivewords.notice).
    • Default: true
  • punishment

    • Description: 玩家违规时的惩罚列表(留空为不进行惩罚) / List of punishments for violations (Leave empty for no punishment).
    • Example: COMMAND|kick %player%
  • purgeLogFile

    • Description: 是否在插件启动时自动清除旧的日志文件 / Whether to automatically clear old log files on plugin startup.
    • Default: false
  • replacement

    • Description: 敏感词替换符号 / Replacement symbol for sensitive words.
    • Default: *
  • definedReplacement

    • Description: 预定义替换(需要先加入blackList)(如包含相同敏感词,长的放前面)(用|来分隔敏感词和替换词) / Predefined replacements (Must be added to the blacklist first) (For identical sensitive words, place the longer one first) (Use '|' to separate sensitive words and their replacements).
    • Example: 失业|灵活就业

Special Settings

  • enableSignEditCheck

    • Description: *是否启用告示牌检测 / *Whether to enable sign edit checks.
    • Default: true
  • enableAnvilEditCheck

    • Description: *是否启用铁砧重命名检测 / *Whether to enable anvil rename checks.
    • Default: true

...

Book Detection Settings

Book

  • method

    • Description: 替换还是取消(replace/cancel) / Replace or cancel (replace/cancel).
    • Default: replace
  • ignoreNewLine

    • Description: 是否跳过换行 / Whether to skip newline characters.
    • Default: true
  • sendMessage

    • Description: 存在敏感词时是否发送消息提醒 / Whether to send a message alert when sensitive words are detected.
    • Default: true

...

Clone this wiki locally