概览
ChatManager 是一款轻量级的 Paper 1.21.x 聊天管理插件,旨在保持服务器聊天环境整洁并符合规则。它可屏蔽不当消息,通过处罚记录系统追踪玩家违规行为,并在玩家反复违规时自动执行惩罚。
主要功能
屏蔽词过滤
检测 config.yml 中配置黑名单中的词汇
抑制包含屏蔽词的消息(消息不会在聊天中显示)
可选的屏蔽通知消息,告知玩家其消息被屏蔽
完全可配置的词库(随时添加/删除词汇)
处罚记录系统 (Violations)
当玩家触发屏蔽词过滤器时增加一次处罚记录(可配置)
可配置最大处罚记录数(例如:3次)
可配置的处罚记录重置计时器(一段时间内无违规则重置处罚记录)
每个处罚等级可选的警告消息(例如:1/3, 2/3)
自动惩罚 (Auto Mute)
当玩家达到最大处罚记录数时,ChatManager 会自动对其进行惩罚
默认惩罚:根据可配置时长进行禁言
在禁言期间,该玩家的所有聊天消息将被完全屏蔽
日志与存储
处罚记录会保存到 plugins/ChatManager/strikes.yml 中,包含以下有用数据:
player (玩家名称)
id (唯一的处罚记录 ID)
words (导致处罚记录的原始消息)
punish-duration (惩罚时的禁言时长)
禁言状态存储在 plugins/ChatManager/mutes.yml 中
配置
所有设置均可在 plugins/ChatManager/config.yml 中进行自定义,包括:
屏蔽词列表
处罚记录数量 / 重置时间
禁言时长
玩家消息(屏蔽提示、处罚记录提示、禁言提示)
兼容性
服务器软件:Paper
Minecraft 版本:1.21.x
Java:推荐 Java 21
安装
下载插件 .jar 文件
将其放入服务器的 plugins/ 文件夹
启动或重启服务器
根据需要编辑 plugins/ChatManager/config.yml
Overview
ChatManager is a lightweight Paper 1.21.x chat moderation plugin designed to keep your server chat clean and rule-friendly. It blocks inappropriate messages, tracks player violations with a strike system, and automatically applies punishments when players repeatedly break the rules.
Main Features
Blocked Words Filter
Detects words from a configurable blacklist in config.yml
Suppresses messages containing blocked words (the message will not appear in chat)
Optional player notification message when a message is blocked
Fully configurable word list (add/remove words anytime)
Strike System (Violations)
Adds a strike when a player triggers the blocked-words filter (configurable)
Configurable maximum strikes (e.g. 3 strikes)
Configurable strike reset timer (strikes reset after a period without violations)
Optional warning messages per strike level (e.g. 1/3, 2/3)
Automatic Punishments (Auto Mute)
When a player reaches the maximum strikes, ChatManager can automatically punish them
Default punishment: Auto-mute for a configurable duration
While muted, all chat messages from that player are completely blocked
Logging & Storage
Strikes are logged to plugins/ChatManager/strikes.yml with useful data:
player (player name)
id (unique strike ID)
words (the message that caused the strike)
punish-duration (mute duration when punished)
Mutes are stored in plugins/ChatManager/mutes.yml
Configuration
Everything is customizable in plugins/ChatManager/config.yml, including:
Blocked word list
Strike amount / reset time
Mute duration
Player messages (blocked message, strike message, muted message)
Compatibility
Server Software: Paper
Minecraft Version: 1.21.x
Java: Recommended Java 21
Installation
Download the plugin .jar
Place it into your server’s plugins/ folder
Start/restart the server
Edit plugins/ChatManager/config.yml to your needs
评论 0
登录后参与评分
还没有评论,来抢沙发吧