MessagesOnHead 是一款适用于 Paper (1.19.4+) 的插件,当玩家发送聊天消息时,会在其头顶短暂显示该消息。 该插件的功能基于 Text Display 实体实现。
[重要] 该插件在 Minecraft 1.20.2 至 1.21.5 版本中可能无法正常工作。您可能会注意到消息之间的间隙异常大。遗憾的是,由于这些 Minecraft 版本中的特定变更,此问题无法修复。
如果您遇到任何问题或发现 Bug,请在此处提交:这里。
? 预览
? 主要功能
- 每行字符限制:您可以在
symbolsPerLine字段中配置每行的字符数限制。 - 最大字符限制:您可以在
symbolsLimit字段中配置每条消息的最大字符数(如果达到限制,将追加“...”)。 - 计时器:您可以启用/禁用消息末尾的计时器,以显示消息消失前剩余的时间。
- 时间缩放:您可以设置较长的消息存在更长时间。
- 颜色和样式:您可以选择文本颜色、背景颜色、文本是否带有阴影以及计时器的颜色。
- 旋转:您可以在
pivotAxis字段中配置 Text Display 的旋转方式。 - 可见性:您可以通过
visibleToSender字段隐藏发送给发送者自己的消息,并使用messagesonhead.show权限决定全局显示哪些人的消息。 - 可调整间距:您可以在
gapBetweenMessages和gapAboveHead字段中配置消息之间以及玩家头顶上方的间距。 - PlaceholderAPI 支持:您可以配置一个占位符来为 Text Display 着色。
? 权限
messagesonhead.show(默认为 true) —— 决定是否在玩家头顶显示消息。messagesonhead.admin(默认仅限 管理员) —— 允许使用/moh命令。
? 命令
/moh info— 显示命令信息。/moh reload— 重新加载配置文件,并通过移除所有与该插件相关的实体进行清理。/moh say <player> <msg>— 代替玩家发送一条消息。
别名:/messagesonhead。
? 默认配置
symbolsPerLine: 30
# 如果达到限制,将在末尾添加三个点。-1 表示无限制
symbolsLimit: -1
# 消息存在的初始秒数
timeToExist: 2
# 发送者是否能看到自己的消息
visibleToSender: true
# 当玩家处于隐身效果时隐藏消息
hideWhenInvisible: true
# 较长的消息是否存活更长时间
scalingEnabled: true
# 每个符号的缩放系数(以秒为单位)。例如,如果系数设置为 0.1,则包含 50 个符号的消息将额外存在 5 秒(因为 0.1 * 50 = 5)
scalingCoefficient: 0.05
# 消息之间/玩家头顶上方的间距
gapBetweenMessages: 0.3
gapAboveHead: 0.4
textColor: "#FFFFFF"
timerEnabled: true
# 显示计时器的最小消息长度阈值
minSymbolsForTimer: 0
timerFormat: " (%.1f)"
timerColor: "#F4CA16"
backgroundEnabled: true
backgroundColor: "#000000"
# 范围:[0, 100]
backgroundTransparencyPercentage: 100
# 文本是否具有阴影
isShadowed: true
# 文本显示的旋转轴:
# VERTICAL - 可围绕垂直轴旋转
# HORIZONTAL - 可围绕水平轴旋转
# CENTER - 可围绕中心点旋转
# FIXED - 不可旋转
pivotAxis: "VERTICAL"
# 如果您使用支持按玩家自定义聊天颜色的插件(例如 EZColors、ChatColor 等),可以启用此选项
placeholderApiIntegration: false
# 放在每行文本前的占位符名称
colorPlaceholder: "%ezcolors_color%"
# 当 `placeholderApiIntegration` 为 true 时的文本行格式
lineFormat: "&[defaultColor]&[colorPlaceholder][message]"
messages:
"prefix": "&#F4CA16[MessagesOnHead]"
"info-title": "<prefix> &#D9E6ED命令列表:"
"info-toggle-command-description": " &f/moh toggle - &#D9E6ED允许您切换头顶消息的可见性。"
"info-reload-command-description": " &f/moh reload - &#D9E6ED重新加载配置并通过删除与该插件相关的所有实体进行清理。"
"info-say-command-description": " &f/moh say - &#D9E6ED代表玩家说一条消息。"
"reloaded": "<prefix> &#D9E6ED已重新加载!"
"visibility-toggled-on": "<prefix> &#D9E6ED您将&a&n现在&#D9E6ED可以看到其他玩家头顶的消息。"
"visibility-toggled-off": "<prefix> &#D9E6ED您将&c&n不再&#D9E6ED看到其他玩家头顶的消息。"
"only-players": "<prefix> &c只有玩家才能使用此命令!"
"player-not-found": "<prefix> &c未找到玩家。"
"command-not-found": "<prefix> &c未找到命令。"
"error-during-reload": "<prefix> &c重新加载期间发生错误!请检查控制台以获取详细信息。"
? 安装指南
[重要] 在开始之前,请确保插件版本与你的服务器版本兼容。
- 从 Releases 标签页下载最新版本的插件。
- 将下载的
.jar文件放入服务器的/plugins文件夹中。 - 重启服务器或输入
/reload命令。
MessagesOnHead is a Paper (1.19.4+) plugin that shows messages above players' heads for a little time when they send messages to the chat.
The plugin's functionality is based on the Text Display entity.
[IMPORTANT] The plugin might not work correctly in Minecraft versions 1.20.2 to 1.21.5. You may notice unusually large gaps between messages. Unfortunately, this issue cannot be fixed because of version-specific changes in these Minecraft versions.
If you have any issues/bugs, you may leave them here.
? Preview
? Key features
- Limit per line: you can configure the symbols limit for each line in the
symbolsPerLinefield. - Max symbols limit: you can configure the max amount of symbols per message in the
symbolsLimitfield ('...' will be appended if the limit is reached). - Timer: you can enable/disable the timer at the end of the message that shows how much time is left until the message is gone.
- Time scaling: you can make longer messages exist for more time.
- Colors and style: you can choose the color of the text, its background, whether the text is shadowed and the color for the timer.
- Rotation: you may configure how a text display will rotate in the
pivotAxisfield. - Visibility: you may hide messages from their sender via the
visibleToSenderfield as well as choose whose messages will be shown globally using themessagesonhead.showpermission. - Adjustable gaps: you may configure gaps between messages and above player's head in
gapBetweenMessagesandgapAboveHeadfields. - PlaceholderAPI support: you can configure a placeholder that will color your text displays.
? Permissions
messagesonhead.show(true by default) — Whether messages will appear above player's head.messagesonhead.admin(for operators by default) — Allows to use the/mohcommand.
? Commands
/moh info— shows commands info./moh reload— reloads the config and makes a cleanup by removing all entities related to the plugin./moh say <player> <msg>— says a message on behalf of the player.
Aliases: /messagesonhead.
? Default config
symbolsPerLine: 30
# If the limit is reached, the three dots will be added at the end. -1 means there's no limit
symbolsLimit: -1
# Initial amount of seconds for the message to exist
timeToExist: 2
# Whether a message will be visible to its sender
visibleToSender: true
# Hide the message when the player is under an invisibility effect
hideWhenInvisible: true
# Whether a longer message will exist for more time
scalingEnabled: true
# Scaling coefficient per symbol in seconds. For example, a message with 50 symbols
# will exist for extra 5 seconds if the coefficient is set to 0.1 (because 0.1 * 50 = 5)
scalingCoefficient: 0.05
# Distances between messages / above player's head
gapBetweenMessages: 0.3
gapAboveHead: 0.4
textColor: "#FFFFFF"
timerEnabled: true
# Minimum message length threshold for the timer to be displayed
minSymbolsForTimer: 0
timerFormat: " (%.1f)"
timerColor: "#F4CA16"
backgroundEnabled: true
backgroundColor: "#000000"
# Range: [0, 100]
backgroundTransparencyPercentage: 100
# Whether a text will have a shadow
isShadowed: true
# How a text display can pivot:
# VERTICAL - Can pivot around vertical axis
# HORIZONTAL - Can pivot around horizontal axis
# CENTER - Can pivot around center point
# FIXED - No rotation
pivotAxis: "VERTICAL"
# You may enable this if you use a plugin for per-player chat color customization (e.g., EZColors, ChatColor etc.)
placeholderApiIntegration: false
# Name of a placeholder that will be put before each text line
colorPlaceholder: "%ezcolors_color%"
# Format for text lines if `placeholderApiIntegration` is true
lineFormat: "&[defaultColor]&[colorPlaceholder][message]"
messages:
"prefix": "&#F4CA16[MessagesOnHead]"
"info-title": "<prefix> &#D9E6EDCommands list:"
"info-toggle-command-description": " &f/moh toggle - &#D9E6EDAllows you to toggle the visibility of messages on heads."
"info-reload-command-description": " &f/moh reload - &#D9E6EDReloads the config and makes a cleanup by removing all entities related to the plugin."
"info-say-command-description": " &f/moh say - &#D9E6EDSay a message on behalf of the player."
"reloaded": "<prefix> &#D9E6EDReloaded!"
"visibility-toggled-on": "<prefix> &#D9E6EDYou will &a&nnow see&#D9E6ED messages over other players' heads."
"visibility-toggled-off": "<prefix> &#D9E6EDYou will &c&nno longer see&#D9E6ED messages over other players' heads."
"only-players": "<prefix> &cOnly players can use this command!"
"player-not-found": "<prefix> &cPlayer not found."
"command-not-found": "<prefix> &cCommand not found."
"error-during-reload": "<prefix> &cAn error occurred during reload! Check console for details."
? Installation guide
[IMPORTANT] Before getting started, make sure that the plugin's version is compatible with your server version.
- Download the latest version of the plugin from the Releases tab.
- Put the downloaded
.jarinto the/pluginsfolder of your server. - Restart your server or enter the
/reloadcommand.
下载 Messages On Head
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Messages On Head
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Messages On Head
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Messages On Head
下载 Messages On Head
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Messages On Head
下载 Messages On Head
下载 Messages On Head
下载 Messages On Head
下载 Messages On Head
- 添加了在玩家处于隐身效果时防止消息显示的功能
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
自定义你的Minecraft头像!
插件
一个高度兼容、功能完善且稳定的 TPA 模组
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
插件
允许基岩版(Geyser)玩家使用自定义铁砧和锻造台配方。
插件
适用于旧版版本的近距离语音聊天
插件
一个功能丰富、完全动画化的箱子插件,适用于 Paper 1.21.x,支持 IA、Vault、PlaceholderAPI 和 Citizens
评论 0
登录后参与评分
还没有评论,来抢沙发吧