Skip to content

Configuration

Kobe ⑧ edited this page Aug 26, 2024 · 10 revisions

AdvancedSensitiveWords Plugin Configuration Wiki

General Plugin Settings

Plugin

  • language

    • Description: 插件语言(zhcn/en) (需要重启服务器) / Plugin language (zhcn/en) (Requires server restart).
    • Available options: zhcn(简体中文), en(English)
    • Default: zhcn
  • enableDefaultWords

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

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

    • Description: 在线词库地址 / Online word library URL.
    • Default: https://raw.githubusercontent.com/HaHaWTH/ASW-OnlineWordList/main/lists.txt
  • 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).
    • Available punishments: COMMAND, DAMAGE, HOSTILE, EFFECT, SHADOW
    • Example:
      • COMMAND|kick %player% (Kick player when swear)
      • COMMAND_PROXY|kick %player% (Execute kick command on the proxy, this will do nothing if you didn't enable Bungeecord/Velocity hooks in the config)
      • DAMAGE|2 (Deal 2 point (One heart) damage to player
      • HOSTILE|10 (Make the Mobs nearby target at the player)
      • EFFECT|WITHER|10|0 (Apply wither effect to the player for 10s, potion level is 1)
      • SHADOW|10 (Shadowban the player for 10 seconds, all messages the player sent during this period will only be visible to himself)
  • 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: fxxk|love

....More

Special Settings

  • enableSignEditCheck

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

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

    • Description: *是否启用书编辑检测 / *Whether to enable book edit checks.
    • Default: true
  • enablePlayerNameCheck

    • Description: *是否启用玩家名检测(推荐支持中文名的服务器开启) / *Whether to enable player name checks.
    • Default: false

....More

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

...