PlayerChatPing
曾经在聊天中输入了别人的名字,结果对方根本没看到?是的。这个模组解决了这个问题。
在聊天中写入玩家的名字,带上 @ 或不带,该玩家就会收到提醒。他们的名字会在消息中高亮显示为黄色,并听到“叮”的一声提示音,而且(如果你愿意的话)还会弹出一个小小的通知窗口。其他玩家看到的消息与原始内容完全一致。没有垃圾信息,聊天栏也不会多出多余的空行。
功能特性 ?
- 支持通过完整用户名、
@Name 或仅 Name 进行提醒
- 被提醒的玩家会看到高亮的名字 + 听到音效
- 发送者也会在自己的消息中看到高亮的名字,并且被提醒的玩家在 TAB 列表中会高亮显示几秒钟
- 弹窗样式:
title(标题)、subtitle(副标题)、actionbar(动作栏)、boss(作为倒计时消耗的血条 BossBar)、everything(全部显示)或 none(无)
- 玩家可以使用
/playerchatping toggle 关闭提醒
- 冷却时间设置,防止任何人滥用刷屏提醒(可按玩家或目标分别设置,由你决定)
- 添加自定义前缀,如
!、# 等
- 如果使用 Essentials 昵称,也能匹配昵称(可关闭此功能)
- 兼容你的聊天插件。在 Paper 上它会挂钩到聊天渲染器,从而让 EssentialsX Chat、CMI、ChatControl 等插件保持原有的格式
集成支持 ?
- TAB – TAB 高亮效果是通过关系型占位符实现的,因此只有发送者能看到高亮
- LuckPerms – 弹窗消息中支持
%prefix% 和 %suffix%
- PlaceholderAPI – 弹窗内支持占位符,以及
%playerchatping_enabled%、%playerchatping_status%、%playerchatping_cooldown%、%playerchatping_prefixes%
以上均为可选功能。即使缺少这些插件也不会导致崩溃。
命令
/playerchatping help
/playerchatping toggle
/playerchatping toggle <player>
/playerchatping cooldown <seconds>
/playerchatping prefix add <prefix>
/playerchatping prefix remove <prefix>
/playerchatping prefix list
/playerchatping info
/playerchatping reload
/pcp 和 /chatping 可作为别名使用。
权限
| 权限 |
默认值 |
playerchatping.use |
所有人 |
playerchatping.receive |
所有人 |
playerchatping.help |
所有人 |
playerchatping.toggle |
所有人 |
playerchatping.toggle.others |
管理员 (op) |
playerchatping.bypass.cooldown |
无人(需手动授予) |
playerchatping.bypass.toggle |
无人(需手动授予) |
playerchatping.admin(包含 .reload .info .cooldown .prefix) |
管理员 (op) |
playerchatping.* |
无人(需手动授予) |
配置文件
简洁明了,没有冗长的注释块。支持标准的 & 颜色代码和 &#RRGGBB 十六进制色值。命令所能做的所有配置都可以在这里修改。
prefixes:
- "@"
require-prefix: false
case-sensitive: false
highlight:
receiver: "&e"
sender: "&e"
cooldown:
seconds: 5
per-target: true
sound:
name: "entity.experience_orb.pickup"
volume: 1.0
pitch: 1.0
popup:
type: actionbar
actionbar: "&e%sender% &7mentioned you in chat"
tab:
color: "&e"
seconds: 10
注意事项
- 如果你未安装 TAB 插件,TAB 高亮效果会回退为短暂地为所有玩家重新着色名字。如果你不希望这样,可以设置
tab.without-tab-plugin: none。
- 那些取消聊天事件并自行发送消息的聊天插件无法获得高亮效果(这是任何插件都无法改变的),但如果设置
chat.ignore-cancelled: false,音效和弹窗仍然可以正常工作。
技术支持 ?
发现 Bug、需要帮助配置,或者想要添加新功能?欢迎加入 Discord:
PlayerChatPing
Ever typed someone's name in chat and they just... didn't see it? Yeah. This fixes that.
Write a player's name in chat, with @ or without, and they get pinged. Their name lights up yellow in the message, they hear a ding, and (if you want) a little pop-up shows. Everyone else sees the message exactly as it was. No spam, no extra lines in chat.
What it does ?
- Ping by full username,
@Name or just Name
- Pinged player sees their name highlighted + hears a sound
- The sender also sees the name highlighted in their own message, and the pinged player lights up in TAB for a few seconds
- Pop-up styles:
title, subtitle, actionbar, boss (bossbar that drains as a countdown), everything, or none
- Players can turn pings off with
/playerchatping toggle
- Cooldown so nobody can spam-ping (per player or per target, your call)
- Add your own prefixes,
!, #, whatever
- Matches nicknames too if you use Essentials nicks (can be turned off)
- Works with your chat plugin. On Paper it hooks into the chat renderer so EssentialsX Chat, CMI, ChatControl and friends keep their formatting
Hooks ?
- TAB – the tab highlight is done per viewer through a relational placeholder, so only the sender sees it
- LuckPerms –
%prefix% and %suffix% in pop-up messages
- PlaceholderAPI – placeholders inside pop-ups, plus
%playerchatping_enabled%, %playerchatping_status%, %playerchatping_cooldown%, %playerchatping_prefixes%
All optional. Nothing breaks if they're missing.
Commands
/playerchatping help
/playerchatping toggle
/playerchatping toggle <player>
/playerchatping cooldown <seconds>
/playerchatping prefix add <prefix>
/playerchatping prefix remove <prefix>
/playerchatping prefix list
/playerchatping info
/playerchatping reload
/pcp and /chatping work as aliases.
Permissions
| Permission |
Default |
playerchatping.use |
everyone |
playerchatping.receive |
everyone |
playerchatping.help |
everyone |
playerchatping.toggle |
everyone |
playerchatping.toggle.others |
op |
playerchatping.bypass.cooldown |
nobody (grant it) |
playerchatping.bypass.toggle |
nobody (grant it) |
playerchatping.admin (+ .reload .info .cooldown .prefix) |
op |
playerchatping.* |
nobody (grant it) |
Config
Clean, no comment walls. Standard & colour codes and &#RRGGBB hex. Everything the commands do can be changed here too.
prefixes:
- "@"
require-prefix: false
case-sensitive: false
highlight:
receiver: "&e"
sender: "&e"
cooldown:
seconds: 5
per-target: true
sound:
name: "entity.experience_orb.pickup"
volume: 1.0
pitch: 1.0
popup:
type: actionbar
actionbar: "&e%sender% &7mentioned you in chat"
tab:
color: "&e"
seconds: 10
Notes
- If you don't run TAB, the tab highlight falls back to briefly recolouring the name for everyone. Set
tab.without-tab-plugin: none if you'd rather it didn't.
- Chat plugins that cancel the chat event and send messages themselves won't get the highlight (nothing any plugin can do there), but the sound and pop-up still work if you set
chat.ignore-cancelled: false.
Support ?
Found a bug, need help setting it up, or want something added? Hop into the Discord:
评论 0
登录后参与评分
还没有评论,来抢沙发吧