EasyChatFilter
EasyChatFilter 是一个适用于 Paper 26.x 的插件,可自动屏蔽聊天中的不当用语。它支持三种可配置的过滤级别,让服务器管理员能够根据受众群体调整严格程度——从适合全年龄段的服务器到成人社区均可适用。
过滤级别
使用 /chatfilter setlevel <level> 设置服务器的过滤级别:
| 级别 |
受众 |
被屏蔽的内容 |
| PG |
家庭 / 儿童 |
所有内容——轻微脏话、中度亵渎语、仇恨言论、露骨内容 |
| PG13 |
普通 / 青少年 |
中度亵渎语、仇恨言论和露骨内容(如“damn”等轻微词汇会通过) |
| TVMA |
成人 / 宽松 |
仅最恶劣的内容——严重仇恨言论和露骨的性语言 |
默认级别: PG13
绕过检测
EasyChatFilter 会拦截玩家常用的规避过滤的技巧:
- Leet speak(黑客体) —
f@ck、fu(k、5h1t、@ss
- 间隔符与标点符号 —
f u c k、f-u-c-k、f.u.c.k
- 带重音的字符 —
fúck、shït
- 重复字符 —
fuuuuck、shhhhit
- 拆分消息 — 在 5 秒内分四条消息依次输入
f、u、c、k 也会被检测和屏蔽
命令
所有命令均需 chatfilter.admin 权限(默认为 OP)。
| 命令 |
描述 |
/chatfilter setlevel <PG|PG13|TVMA> |
更改当前过滤级别 |
/chatfilter reload |
从磁盘重新加载 config.yml 和 words.yml |
/chatfilter status |
显示当前级别、词库数量和设置 |
/chatfilter addword <word> <PG|PG13|TVMA> |
向指定级别的过滤器中添加一个词 |
/chatfilter removeword <word> |
从过滤器中移除一个词 |
别名: /cf、/ecf
权限
| 权限 |
默认值 |
描述 |
chatfilter.admin |
OP |
访问所有 /chatfilter 命令 |
chatfilter.notify |
OP |
当玩家的消息被过滤时接收私人提醒 |
chatfilter.bypass |
false |
完全跳过过滤器(例如用于受信任的管理员) |
配置
config.yml
filter-level: PG13 # 活动级别:PG、PG13 或 TVMA
replacement: "###" # 替换被过滤词汇的文本
notify-admins: true # 向拥有 chatfilter.notify 权限的玩家发送警报
log-to-console: true # 将过滤后的消息记录到服务器控制台
split-detection: true # 检测跨多条消息拆分的单词
words.yml
内置了全面的词库。你可以随时使用上述命令添加或删除条目,或直接编辑文件并运行 /chatfilter reload。
EasyChatFilter
EasyChatFilter is a Paper 26.x plugin that automatically censors inappropriate language in chat. It supports three configurable filter levels so server owners can tune strictness to their audience — from family-friendly servers to adult communities.
Filter Levels
Set the server's filter level with /chatfilter setlevel <level>:
| Level |
Audience |
What Gets Blocked |
| PG |
Family / Kids |
Everything — mild language, moderate profanity, slurs, explicit content |
| PG13 |
General / Teen |
Moderate profanity, slurs, and explicit content (mild words like "damn" pass through) |
| TVMA |
Adult / Lenient |
Only the worst content — hard slurs and explicit sexual language |
Default level: PG13
Bypass Detection
EasyChatFilter catches common tricks players use to sneak past filters:
- Leet speak —
f@ck, fu(k, 5h1t, @ss
- Spacers & punctuation —
f u c k, f-u-c-k, f.u.c.k
- Accented characters —
fúck, shït
- Repeated characters —
fuuuuck, shhhhit
- Split messages — typing
f, then u, then c, then k across four separate messages within 5 seconds is caught and blocked
Commands
All commands require the chatfilter.admin permission (default: OP).
| Command |
Description |
/chatfilter setlevel <PG|PG13|TVMA> |
Change the active filter level |
/chatfilter reload |
Reload config.yml and words.yml from disk |
/chatfilter status |
Show the current level, word counts, and settings |
/chatfilter addword <word> <PG|PG13|TVMA> |
Add a word to the filter at a given level |
/chatfilter removeword <word> |
Remove a word from the filter |
Aliases: /cf, /ecf
Permissions
| Permission |
Default |
Description |
chatfilter.admin |
OP |
Access to all /chatfilter commands |
chatfilter.notify |
OP |
Receive a private alert when a player's message is filtered |
chatfilter.bypass |
false |
Skip the filter entirely (e.g. for trusted staff) |
Configuration
config.yml
filter-level: PG13 # Active level: PG, PG13, or TVMA
replacement: "###" # Text that replaces a filtered word
notify-admins: true # Alert players with chatfilter.notify
log-to-console: true # Log filtered messages to the server console
split-detection: true # Catch words split across multiple messages
words.yml
Ships with a comprehensive built-in word list. Add or remove entries at any time using the commands above, or edit the file directly and run /chatfilter reload.
评论 0
登录后参与评分
还没有评论,来抢沙发吧