
## xChat - 您终极的聊天解决方案
`〢使用 ProtocolLib`
xChat - 高级且专业的聊天格式
您是否厌倦了基本且过时的聊天插件? xChat 旨在彻底改变服务器上的沟通。这个插件不仅格式化聊天,还将其变成一种交互式、现代且完全可定制的体验。
从基于等级的格式和悬停时交互式文本,到完整的私信系统,带有快速回复和社交窥探,xChat 旨在成为您唯一需要的聊天工具。
⭐ 主要功能 ⭐
✅ 专业聊天格式
十六进制/RGB 颜色:使用完整的 Minecraft 颜色调色板!(RRGGBB)。
完整的 PlaceholderAPI 支持:直接在聊天中显示任何玩家统计信息。
基于等级的格式(通过 Vault):与 LuckPerms 和其他权限插件的完美集成,以显示前缀和组格式。
交互式悬停文本:只需将鼠标悬停在其姓名上即可显示详细的玩家统计信息(金钱、游戏时长等)。
点击私聊:在聊天中点击玩家的姓名即可立即开始私信。
✅ 高级私信系统
可定制格式:设置发送和接收消息的外观方式。
快速回复命令(/r): 使用单个命令回复上一条私信。 这是您的用户的必备功能!
通知声音:接收消息时会发出小声音,以确保不会错过消息。
✅ 工作人员和服务器工具
社交窥探(/socialspy): 允许具有权限的工作人员监控私信,以确保社区安全。
忽略系统(/ignore): 允许用户永久忽略其他玩家。
反垃圾邮件:通过可配置的消息间隔防止聊天垃圾邮件。
更新通知器:当 Modrinth 上有 xChat 新版本可用时,会在控制台中发出警报。
✅ 优化和兼容性
轻量级和优化:基于 Paper API 构建,并使用 ProtocolLib 中的数据包以获得最大性能。
100% 可定制:可以从生成的 config.yml 文件中调整绝对所有的消息、格式和功能。
匿名的统计数据(与 bStats 合作):帮助我们了解插件的使用情况并改进它。
🖼️ 插件预览



**🔧 命令和权限**
```yaml
Comando Alias Permiso Descripción
/xchat reload /xc reload xchat.reload 重新加载插件配置。
/xchat help /xc help (无) 显示主帮助。
/msg /tell, /w (无) 发送私信。
/reply /r (无) 回复上一条私信。
/ignore /ign (无) 管理你的忽略列表。
/socialspy /spy xchat.socialspy 激活/禁用 PM 窥探。
(Bypass Spam) - xchat.antispam.bypass 允许跳过聊天冷却时间。
```
导出到电子表格
🔌 所需依赖
为了使 xChat 能够充分发挥其潜力,您需要安装以下三个插件:
Vault:用于权限和经济插件集成。
PlaceholderAPI:使用数千个可用占位符。
ProtocolLib:用于高级功能功能。
**🐠Config.YML**
```yaml
# ___ _ _
# __ __ / __\ |__ __ _| |_
# \ \/ // / | '_ \ / _` | __|
# > /___| | | | (_| | |_
# /_/\_\____/|_| |_|\__,_|\__|
#
# 🐠 Wiki: http://xchat.willfry.net/
# 💥 Discord: https://discord.gg/9khbRDhPCS
# 这是一个默认聊天格式,如果玩家没有特定的组格式,它将被使用。
# 与 PlaceholderAPI 兼容:https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders
chat-format: "%vault_rank% %player_name%&7 ▸ &f%message%"
# LuckPerms 组的格式(通过 Vault)。
# 组名(例如,'vip')必须与您的权限插件中的相同。
groups:
vip: "&b&lVIP &b%player_name% &7▸ &f%message%"
# 悬停时格式为 HOVER。
# 此格式的优先级高于 'groups' 和 'chat-format' 格式。
hover-format:
default:
description: "&7▸ MC3FFPlayer 统计信息 &n%player_name%&r"
lines:
- "&8▸ 个人信息 ◂"
- ""
- "&f玩家名称: "D399%player_name% ✔"
- "&f加入时间: "D399%player_first_join_date%"
- ""
- "&8 • &f总金币: "D399%vault_eco_balance_formatted%"
- "&8 • &f游戏时长: "D399%statistic_hours_played%"
- "&8 • &f当前公会: FCA5A5None"
- "&8 • &f当前伙伴: FCA5A5None"
- ""
- "MC3FF!&n点击发送消息!"
click: "/msg %player_name% "
format: "C084FC%changeoutput_equals_input:default_matcher:{vault_rank}_ifmatch:FF0000Get it!_else:{vault_prefix}% E5E7EB%player_name%"
# 私信 (/msg, /r, /socialspy)
#
# /\/\ ___ __ _
# / \/ __|/ _` | Idea by
# /\/\ \__ \ (_| | xPlugins
# \/ \/___/\__, |
# |___/
pm:
# 双方玩家都能看到的格式。占位符会根据发件人和收件人进行调整。
# %player_name% 将是发件人,%essentials_nickname% 将是收件人(或相反)。
format:
sender: "FCD05C✉ 消息! &8▸ &f来自 FCD05C%sender_name% &fa FCD05C%receiver_name%&7 ▸ &f%message%"
receiver: "FCD05C✉ 消息! &8▸ &f来自 FCD05C%sender_name% &fa FCD05C%receiver_name%&7 ▸ &f%message%"
# 收件人收到消息时听到的声音。
# 声音列表:https://jd.papermc.io/paper/1.20/org/bukkit/Sound.html
sound: "ENTITY_EXPERIENCE_ORB_PICKUP"
# 工作人员查看私信的系统。
social-spy:
enabled: true
format: "&8[&cSPY&8] FCD05C%sender_name% &8▸ FCD05C%receiver_name% &8▸ &f"
# 系统可配置的消息,用于 MSG / Pm 系统。
messages:
usage: "&c用法: /{label} <玩家> <消息>"
reply_usage: "&c用法: /{label} <消息>"
player-not-found: "&c该玩家不在线。"
cannot-message-self: "&c您不能给自己发送消息。"
no-reply-target: "&c您没有可以回复的目标。"
social-spy-on: "&a社交窥探已启用。您现在将看到私信。"
social-spy-off: "&c社交窥探已禁用。"
# 帮助消息 (/xchat help, /ignore help)
# /\/\ ___ __ _
# / \/ __|/ _` | Idea by
# /\/\ \__ \ (_| | xPlugins
# \/ \/___/\__, |
# |___/
help-message:
xchat:
- "&7-------&f xChat 帮助 &7------"
- ""
- "AEC6CF> /xchat help ➛&f显示此帮助消息。"
- "AEC6CF> /xchat reload ➛&f重新加载插件配置。"
- ""
- "&7---------------------------------------"
ignore:
- "&7-----------------&f 忽略帮助 &7--------------------"
- ""
- "AEC6CF /ignore help ➛&f显示此帮助。"
- "AEC6CF /ignore list ➛&f查看您正在忽略的人。"
- "AEC6CF /ignore add ➛&f开始忽略他们。"
- "AEC6CF /ignore remove ➛&f停止忽略他们。"
- "AEC6CF /ignore toggle ➛&f切换忽略状态"
- ""
- "&7---------------------------------------"
# 忽略系统 (/ignore)
# _____
# \_ \__ _ _ __ ___ _ __ ___
# / /\/ _` | '_ \ / _` | '__/ _ \
# \ \_/_| (_| | | | (_) | | | __/
# \___/ \__, |_| |_|\__,_|_| \___|
# |___/
ignore:
enabled: true
storage: "ignores.yml"
messages:
added: "&a您现在正在忽略 &f%target%。"
removed: "&e您不再忽略 &f%target%。"
not_found: "&c未找到玩家。"
usage: "&e用法: /ignore [player]"
cannot_ignore_self: "&c您不能忽略自己。"
list_empty: "&7您没有忽略任何人。"
list_header: "&6忽略:"
list_format: "&7- &f%target%"
# 反垃圾邮件
# _ _ _ __
# /\ /\ _ __ __| | __ _| |_ ___
# / / \ \ '_ \ / _` |/ _` | __/ _ \
# /\/ /_| |_) | (_| | (_| | || __/
# \/ \/ .__/ \__, |_| |_|\__\___|
# |_| 1.0.0
anti-spam:
enabled: true
delay-seconds: 3
message: "ff0000 ⚠ 请慢下来!在再次聊天之前,您必须等待 %time% 秒。"
# GENERAL PLUGIN MESSAGES
# /\/\ ___ __ _
# / \/ __|/ _` | Idea by
# /\/\ \__ \ (_| | xPlugins
# \/ \/___/\__, |
# |___/
plugin-messages:
reload: "Ke25f ✔ 嘿! xChat 配置已重新加载!"
no-permission: "ff2c2c ☀ 糟糕!您没有运行此命令的权限!"
# 更新通知器
# _ _
# /\ /\ _ __ __| | __ _| |_ ___
# / / \ \ '_ \ / _` |/ _` | __/ _ \
# \ \_/ / |_) | (_| | (_| | || __/
# \___/| .__/ \__, |_| |_|\__\___|
# |_| 1.0.0
update-checker:
enabled: true
```
⚙️ 安装
下载 xChat .jar 文件。
确保安装了以上 3 个依赖项。
将所有的 .jar 文件放到服务器的插件文件夹中。
启动或重启服务器。
在生成的 config.yml 文件中配置所有内容以满足您的需求!
❤️ 支持和致谢
由 WillfryDev (xPlugins inc.) 充满爱意制作。
需要帮助、有建议或发现了错误?
加入我们的官方 [discord](https://discord.gg/9khbRDhPCS)!