ChatHistoryEnhanced
ChatHistoryEnhanced 是一款专为现代 Paper 服务器打造的轻量级、高效的聊天记录与 Moderation(管理)工具。它能无缝追踪玩家的聊天历史,并具备自动标记系统以及用于管理人员审查的直观游戏内 GUI。
功能特性
- 持久化聊天记录: 自动保存每位玩家最近的 X 条消息(可配置,默认为 50 条)。数据按 UUID 清晰存储,即使玩家更改用户名,日志依然安全无误。
- 自动词汇标记: 拦截并取消包含
badwords.yml 文件中定义的黑名单词汇的消息。
- 管理员审查 GUI: 管理员可以在交互式箱子菜单中轻松审查被标记的消息。只需左键点击确认违规,或右键点击将其驳回为误报。
- 智能通知: 当消息被标记时,管理员会收到游戏内通知;登录时还会收到有待审查事项的友好提醒。(这些通知完全可开关)。
- 豁免系统: 轻松将特定玩家或权限组从记录和标记中排除。
- 富文本支持: 完全支持 MiniMessage 格式用于所有插件消息,允许使用美观的现代文本格式、悬停事件和颜色。
命令与权限
| 命令 |
描述 |
权限 |
/chatlog <player> |
查看玩家的最近聊天历史。 |
chathistory.admin |
/chatlog review |
打开 GUI 以审查被标记的消息。 |
chathistory.admin |
/chatlog unflag <id> |
通过 ID 手动移除特定的被标记消息。 |
chathistory.admin |
/chatlog reload |
重新加载所有插件配置。 |
chathistory.reload |
注意:拥有 chathistory.bypass 权限的玩家(或在 config.yml 中明确列出的玩家)将绕过聊天记录和坏词过滤器。
配置
ChatHistoryEnhanced 具有高度可定制性。首次加载时,它会在你的 plugins 文件夹中生成四个直观的配置文件:
config.yml: 设置全局前缀、每位玩家的最大记录消息数、豁免设置以及切换管理员通知行为。
messages.yml: 使用 MiniMessage 标签完全自定义插件发送的所有消息。
badwords.yml: 定义自动标记系统的触发词。
flagged.yml: (系统文件)安全存储待处理被标记的消息,确保标志在服务器重启后得以保留。
专为 PaperMC 构建。需要更新后的服务器环境以支持 Adventure/MiniMessage API。
ChatHistoryEnhanced
ChatHistoryEnhanced is a lightweight, efficient chat logging and moderation tool built for modern Paper servers. It seamlessly tracks player chat history and features an automated flagging system with an intuitive in-game GUI for staff review.
Features
- Persistent Chat Logging: Automatically saves the last X messages (configurable, default 50) per player. Data is stored cleanly by UUID, meaning logs are safe even if a player changes their username.
- Automated Word Flagging: Intercepts and cancels messages containing blacklisted words defined in your
badwords.yml file.
- Staff Review GUI: Admins can easily review flagged messages in an interactive chest menu. Simply Left-click to confirm the violation, or Right-click to dismiss it as a false alarm.
- Smart Notifications: Staff are notified in-game when a message is flagged and receive helpful reminders of pending reviews upon logging in. (These notifications are fully toggleable).
- Bypass System: Easily exempt specific players or permission groups from being logged or flagged.
- Rich Text Support: Fully supports MiniMessage formatting for all plugin messages, allowing for beautiful, modern text formatting, hover events, and colors.
Commands & Permissions
| Command |
Description |
Permission |
/chatlog <player> |
View a player's recent chat history. |
chathistory.admin |
/chatlog review |
Open the GUI to review flagged messages. |
chathistory.admin |
/chatlog unflag <id> |
Manually remove a specific flagged message by ID. |
chathistory.admin |
/chatlog reload |
Reload all plugin configurations. |
chathistory.reload |
Note: Players with the chathistory.bypass permission (or those explicitly listed in config.yml) will bypass chat logging and the bad-word filter.
Configuration
ChatHistoryEnhanced is highly customizable. Upon first load, it generates four intuitive configuration files in your plugins folder:
config.yml: Set your global prefix, maximum messages to log per player, bypass settings, and toggle staff notification behaviors.
messages.yml: Completely customize every message the plugin sends using MiniMessage tags.
badwords.yml: Define the trigger words for the automated flagging system.
flagged.yml: (System file) Safely stores pending flagged messages, ensuring flags persist across server restarts.
Built for PaperMC. Requires an up-to-date server environment to support the Adventure/MiniMessage APIs.
评论 0
登录后参与评分
还没有评论,来抢沙发吧