X-Chat
基于 MiniMessage 和自定义格式的先进聊天管理插件
? 描述
X-Chat 是一款全面的聊天管理插件,让您完全掌控服务器的聊天体验。从具有优先级权重的格式和交互式悬停/点击效果,到实时审查过滤器和自定义表情符号——所有功能均可通过 YAML 文件进行配置。支持所有主流颜色格式,并优雅地兼容 Paper 和 Spigot 服务器。兼容 Minecraft 1.18+。
✨ 特性
- 基于优先级的格式系统: 创建无限数量的聊天格式(管理员、VIP、默认等),并设置数值优先级。系统将自动选择玩家拥有权限的最高优先级格式。每种格式都有独立的颜色权限(传统代码、Hex 十六进制、MiniMessage)。
- 全色彩格式支持: MiniMessage (
<red>, <gradient>)、传统代码 (&c, &l)、Hex (&#FF0000)、BBCode ([BOLD], [COLOR=#hex]) 以及 HTML 简写 (<b>, <i>, <u>, <s>) —— 全部无缝自动转换。
- 交互式玩家名称: 悬停在玩家名称上可查看自定义信息(通过 PlaceholderAPI 显示头衔、延迟等)。点击可执行可配置的操作(建议命令、运行命令、打开 URL、复制到剪贴板)。适用于所有格式。
- 自动提及: 自动检测玩家在聊天中按名称提及了其他玩家的情况。使用自定义渐变格式高亮显示被提及的名称,并播放可配置的音效。支持可选的
@ 前缀要求。
- 智能审查套件: 防刷屏(可配置冷却时间)、防大写(百分比阈值,自动转小写或阻止)、防广告(基于正则表达式的 IP 和 Discord 链接检测)以及智能敏感词过滤(部分
w**d 或完整 **** 屏蔽)。每个过滤器都有独立的绕过权限。
- 动态聊天标签:
[item] — 显示手持物品及悬停提示框(名称、数量、耐久度、附魔)。[pos] — 显示坐标,点击可复制。[ping] — 显示玩家延迟。所有标签均可单独配置,拥有各自的 YAML 文件。
- 自定义表情符号系统: 定义文本快捷方式,替换为表情符号或格式化文本。支持在表情符号值中使用 MiniMessage。可通过权限限制或向所有人开放。
- 自动链接: 聊天中的 URL 会自动转换为可点击的链接,并带有可配置的悬停文本。
- 私聊系统:
/msg、/r(回复)—— 默认所有玩家均可使用。包含供工作人员使用的 SocialSpy(社交间谍模式)、具有持久化功能的忽略系统,以及防止自我发送消息的功能。
- 聊天记录: 每位玩家的日志保存在内存和磁盘中。通过
/chatlog 或 /history 查看,支持分页输出。
- 自定义加入/离开消息: 可配置的加入、离开和首次加入消息,支持 MiniMessage 和 PlaceholderAPI。取消默认的 Bukkit 消息。
- 自动广播器: 定时公告,支持随机或顺序排列,可配置音效,并支持多行 MiniMessage。
- 自定义死亡消息: 针对不同死因的死亡消息(PvP、坠落、溺水、火焰、岩浆、虚空、爆炸、仙人掌、闪电、魔法、投射物等),支持 MiniMessage 格式化。
- 消息中的占位符: 允许玩家直接在聊天消息中使用 PlaceholderAPI 占位符(需配置权限)。
- 6 种语言文件: EN、ES、PT、JA、RU 和 CUSTOM —— 通过
/xchat locate 在运行时切换语言。
- 动态命令注册: 所有命令(名称和别名)均在
config.yml 中定义 —— 无需编辑 plugin.yml。更改在重载时生效。
- 配置自动更新器: 检测过期的配置,创建备份,并在启动时自动重建。
- Paper & Spigot 兼容: 悬停、点击和交互效果在 Paper 上原生工作。在 Spigot 上,它们会自动剥离为纯文本 —— 无错误,无崩溃。
- Folia 支持: 完全兼容 Folia 的区域化线程。
?️ 兼容性
| 软件 |
支持情况 |
| Bukkit / Spigot / Paper / Purpur |
✅ |
| Folia |
✅ |
| PlaceholderAPI |
✅ (软依赖) |
| Vault |
✅ (软依赖) |
| Minecraft |
1.18 → 1.21+ |
?️ 主要命令
/msg <player> <message>
向一名玩家发送私聊消息。默认情况下所有人都可以使用。
/r <message>
回复最后向您发送私聊消息的玩家。默认情况下所有人都可以使用。
/clearchat
清除所有在线玩家的聊天内容。
/socialspy
切换 SocialSpy 模式 —— 查看所有玩家之间发送的私聊消息。
/ignore <player>
忽略一名玩家。您将不再看到他们的消息,也不会收到来自他们的消息。重启后依然保持该状态。
/sudo <player> <command/message>
强制一名玩家执行命令或发送聊天消息。
/chatlog <player> [page]
查看某名玩家最近的聊天记录,支持分页输出。
/broadcast <message>
向所有在线玩家发送带有自定义格式的全局公告。
/xchat [subcommand]
help — 显示帮助菜单。
reload — 重载所有 YAML 配置文件。
version — 显示当前版本信息。
update — 手动检查更新。
locate <language> — 在运行时更改插件语言。
?️ 权限
聊天格式
xchat.format.admin — 使用管理员聊天格式。(默认:无)
xchat.format.vip — 使用 VIP 聊天格式。(默认:无)
xchat.format.default — 使用默认聊天格式。(默认:无)
常规
xchat.colors — 使用所有颜色类型(旧版、十六进制、MiniMessage)的主权限。(默认:op)
xchat.tags.all — 使用所有交互式标签的主权限。(默认:无)
命令
xchat.command.clear — 使用 /clearchat。(默认:op)
xchat.command.spy — 使用 /socialspy。(默认:op)
xchat.command.ignore — 使用 /ignore。(默认:op)
xchat.command.sudo — 使用 /sudo。(默认:op)
xchat.command.history — 使用 /chatlog。(默认:op)
xchat.command.broadcast — 使用 /broadcast。(默认:op)
管理
xchat.admin — 使用 /xchat 管理命令。(默认:op)
过滤器绕过
xchat.bypass.spam — 绕过反垃圾邮件冷却时间。(默认:无)
xchat.bypass.caps — 绕过大写过滤。(默认:无)
xchat.bypass.advertising — 绕过广告过滤。(默认:无)
xchat.bypass.blocked-words — 绕过禁用词过滤。(默认:无)
xchat.bypass.grammar — 绕过自动语法修正。(默认:无)
功能
xchat.placeholders — 在聊天消息中使用 PlaceholderAPI 占位符。(默认:无)
xchat.emojis — 在聊天中使用自定义表情符号。(默认:无)
xchat.tags.click — 在聊天中使用点击标签。(默认:无)
xchat.tags.hover — 在聊天中使用悬停标签。(默认:无)
xchat.tags.insert — 在聊天中使用插入标签。(默认:无)
xchat.tags.font — 在聊天中使用字体标签。(默认:无)
提示: /msg 和 /r 默认没有权限限制——所有玩家均可使用。你可以在 config.yml 中添加权限以限制访问。
需要帮助?加入我们的 [Discord] 或在讨论区报告问题。
X-Chat
Advanced chat management with MiniMessage and custom formats
? Description
X-Chat is a comprehensive chat management plugin that gives you full control over your server's chat experience. From priority-weighted formats and interactive hover/click effects to real-time moderation filters and custom emojis — everything is configurable from YAML files. Supports all major color formats and gracefully handles both Paper and Spigot servers. Compatible with Minecraft 1.18+.
✨ Features
- Priority-based Format System: Create unlimited chat formats (admin, vip, default, etc.) with numeric priorities. The highest-priority format the player has permission for is automatically selected. Each format has independent color permissions (legacy, hex, MiniMessage).
- Full Color Format Support: MiniMessage (
<red>, <gradient>), Legacy (&c, &l), Hex (&#FF0000), BBCode ([BOLD], [COLOR=#hex]), and HTML shorthand (<b>, <i>, <u>, <s>) — all auto-converted seamlessly.
- Interactive Player Names: Hover over a player's name to see custom info (rank, ping, etc. via PlaceholderAPI). Click to execute configurable actions (suggest command, run command, open URL, copy to clipboard). Works with all formats.
- Auto-Mentions: Automatically detects when a player mentions another by name in chat. Highlights the mentioned name with a custom gradient format and plays a configurable sound. Supports optional
@ prefix requirement.
- Smart Moderation Suite: Anti-Spam (configurable cooldown), Anti-Caps (percentage threshold with auto-lowercase or block), Anti-Advertising (regex-based IP and Discord link detection), and Smart Censor (partial
w**d or full **** word censoring). Each filter has its own bypass permission.
- Dynamic Chat Tags:
[item] — shows held item with hover tooltip (name, amount, durability, enchantments). [pos] — displays coordinates with click-to-copy. [ping] — shows player latency. All individually configurable with their own YAML files.
- Custom Emoji System: Define text shortcuts that are replaced with emojis or formatted text. Supports MiniMessage in emoji values. Permission-gated or open to everyone.
- Auto-Links: URLs in chat are automatically converted to clickable links with configurable hover text.
- Private Messaging System:
/msg, /r (reply) — usable by all players by default. Includes SocialSpy for staff, ignore system with persistence, and self-message prevention.
- Chat History: Per-player message log saved in memory and disk. View with
/chatlog or /history with paginated output.
- Custom Join/Leave Messages: Configurable join, leave, and first-join messages with MiniMessage and PlaceholderAPI support. Cancels default Bukkit messages.
- Auto-Broadcaster: Timed announcements with random or sequential order, configurable sounds, and multi-line MiniMessage support.
- Custom Death Messages: Per-cause death messages (PvP, fall, drown, fire, lava, void, explosion, cactus, lightning, magic, projectile, etc.) with MiniMessage formatting.
- Placeholders in Messages: Allow players to use PlaceholderAPI placeholders directly in their chat messages (configurable with permission).
- 6 Language Files: EN, ES, PT, JA, RU, and CUSTOM — switch languages at runtime with
/xchat locate.
- Dynamic Command Registration: All commands (names and aliases) are defined in
config.yml — no need to edit plugin.yml. Changes apply on reload.
- Config Auto-Updater: Detects outdated configurations, creates a backup, and rebuilds automatically on startup.
- Paper & Spigot Compatible: Hover, click, and interactive effects work natively on Paper. On Spigot, they are automatically stripped to plain text — no errors, no crashes.
- Folia Supported: Fully compatible with Folia's regionized threading.
?️ Compatibility
| Software |
Supported |
| Bukkit / Spigot / Paper / Purpur |
✅ |
| Folia |
✅ |
| PlaceholderAPI |
✅ (soft) |
| Vault |
✅ (soft) |
| Minecraft |
1.18 → 1.21+ |
?️ Main Commands
/msg <player> <message>
Sends a private message to a player. Usable by everyone by default.
/r <message>
Replies to the last player who sent you a private message. Usable by everyone by default.
/clearchat
Clears the chat for all online players.
/socialspy
Toggles SocialSpy mode — see all private messages sent between players.
/ignore <player>
Ignores a player. You will no longer see their messages or receive messages from them. Persistent across restarts.
/sudo <player> <command/message>
Forces a player to execute a command or send a chat message.
/chatlog <player> [page]
View a player's recent chat history with paginated output.
/broadcast <message>
Send a global announcement to all online players with a custom format.
/xchat [subcommand]
help — Shows the help menu.
reload — Reloads all YAML configurations.
version — Shows the current version info.
update — Manually check for updates.
locate <language> — Changes the plugin language at runtime.
?️ Permissions
Chat Formats
xchat.format.admin — Use the admin chat format. (default: none)
xchat.format.vip — Use the VIP chat format. (default: none)
xchat.format.default — Use the default chat format. (default: none)
General
xchat.colors — Master permission to use ALL color types (legacy, hex, MiniMessage). (default: op)
xchat.tags.all — Master permission to use ALL interactive tags. (default: none)
Commands
xchat.command.clear — Use /clearchat. (default: op)
xchat.command.spy — Use /socialspy. (default: op)
xchat.command.ignore — Use /ignore. (default: op)
xchat.command.sudo — Use /sudo. (default: op)
xchat.command.history — Use /chatlog. (default: op)
xchat.command.broadcast — Use /broadcast. (default: op)
Administration
xchat.admin — Use /xchat admin commands. (default: op)
Filter Bypass
xchat.bypass.spam — Bypass anti-spam cooldown. (default: none)
xchat.bypass.caps — Bypass anti-caps filter. (default: none)
xchat.bypass.advertising — Bypass anti-advertising filter. (default: none)
xchat.bypass.blocked-words — Bypass blocked-words filter. (default: none)
xchat.bypass.grammar — Bypass auto-grammar corrections. (default: none)
Features
xchat.placeholders — Use PlaceholderAPI placeholders in chat messages. (default: none)
xchat.emojis — Use custom emojis in chat. (default: none)
xchat.tags.click — Use click tags in chat. (default: none)
xchat.tags.hover — Use hover tags in chat. (default: none)
xchat.tags.insert — Use insert tags in chat. (default: none)
xchat.tags.font — Use font tags in chat. (default: none)
Tip: /msg and /r have no permission by default — all players can use them. You can add a permission in config.yml to restrict access.
Need help? Join our [Discord] or report issues in the discussion section.
评论 0
登录后参与评分
还没有评论,来抢沙发吧