HyacinthHello
一个简单的插件,允许玩家设置自定义的加入、离开和死亡消息。
可以通过 /joinmsg、/leavemsg 和 /deathmsg 设置消息,并存储在插件目录下的 PlayerDatabase 中。
在 [此处] 查看演示。
命令
使用命令设置消息。传入空值可清除消息。
/joinmsg [message]/leavemsg [message]/deathmsg [message]
如果拥有 hyacinthhello.mod 权限节点,Moderator(管理员)可以覆盖其他用户的消息。
/hh mod joinmsg [user] [message]/hh mod leavemsg [user] [message]/hh mod deathmsg [user] [message]
配置
配置允许你修改插件的外观。以下是一个示例:
enabled: true # 是否启用插件
proxy-mode: false # 是否启用 Velocity 支持(见下文)
proxy-redis: # 如果上面为 false 则忽略此项
address: 0.0.0.0 # 你的 Redis 地址,通常这样即可
port: 6379 # 你的 Redis 端口,通常这样即可
channel: hyacinthhello # 除非你有多个带有 HyacinthHello 的代理服务器,否则保持默认
ssl: false # 除非你知道需要更改此项,否则留空
pass: # 除非你知道该填什么,否则留空
database:
type: yaml # 默认为 yaml。其他选项包括 mysql 或 postgres
# 如果你选择了 yaml,可以忽略其余的数据库配置部分
host: 0.0.0.0
port: 3306 # MySQL 默认为 3306,Postgres 为 5432
db: hyacinthhello # 创建此数据库
user: # 填写此项
pass: # 填写此项
economy:
enabled: false # 是否对更改消息收费
type: 'vault' # 选项有 vault 或 playerpoints
cost: # PlayerPoints 仅支持整数(例如 10.0,而非 10.5)
joinmsg: 10.0
leavemsg: 10.0
deathmsg: 10.0
prefix: "" # 命令响应前的前缀
wrapper-left: "&e&o" # 消息的前缀
wrapper-right: "" # 消息的后缀
maximum-message-length: 60 # 玩家设置消息时检查的最大长度
regex-filters: # 正则表达式过滤器无需包裹在 / 中
- "simpleexactmatch"
- "t[a-zA-Z]st"
经济系统
支持 Vault 或 Rosewood Development 的 PlayerPoints。
清除消息时不会收费,只有设置消息时才收费。
权限
hyacinthhello.use用于使用任何命令hyacinthhello.mod用于使用管理命令hyacinthhello.joinmsg用于设置并接收加入消息hyacinthhello.leavemsg用于设置并接收离开消息hyacinthhello.deathmsg用于设置并接收死亡消息hyacinthhello.color用于在消息中使用颜色
占位符
每种消息类型都有其自己的占位符。占位符将不包含配置中设置的包装器。
%hyacinthhello_join%%hyacinthhello_leave%%hyacinthhello_death%
如果玩家拥有相应权限,占位符还将包含颜色和格式代码。你可以排除这些内容:
%hyacinthhello_join-clean%%hyacinthhello_leave-clean%%hyacinthhello_death-clean%
你还可以传递用户名以获取特定玩家的自定义消息。
%hyacinthhello_join_[username]%
Velocity
通过 HyacinthHello Velocity 插件,你可以在整个网络中广播 HyacinthHello 的自定义消息。
Velocity 插件可以将消息转发到其他服务器,也可以接管代理服务器上所有的加入、离开和死亡消息。推荐使用后一种方式。
如果你想跨代理同步玩家的自定义消息,可以为所有服务器使用单个 MySQL 或 Postgres 数据库。
需要 Redis。
在你的服务端:
proxy-mode: true
proxy-redis:
address: 0.0.0.0 # 你的 Redis 地址,通常这样即可
port: 6379 # 你的 Redis 端口,通常这样即可
channel: hyacinthhello # 除非你有多个带有 HyacinthHello 的代理服务器,否则保持默认
ssl: # 除非你知道需要更改此项,否则留空
pass: # 除非你知道该填什么,否则留空
在你的代理端:
# 变量:
# {p} 玩家名称
# {s} 服务器名称
# {m} 转发的消息
redis:
address: 0.0.0.0 # 你的 Redis 地址,通常这样即可
port: 6379 # 你的 Redis 端口,通常这样即可
prefix: hyacinthhello # 除非你有多个带有 HyacinthHello 的代理服务器,否则保持默认
ssl: # 除非你知道需要更改此项,否则留空
pass: # 除非你知道该填什么,否则留空
override-backends: true # 覆盖默认和自定义消息。
join-message: '<yellow>{p} joined {s}' # 允许为加入消息设置自定义格式
leave-message: '<yellow>{p} left {s}' # 允许为离开消息设置自定义格式
death-message: '<yellow>{m}' # 仅包装从后端服务器转发的消息
wrapper-left: '&e&o'
wrapper-right: ''
HyacinthHello
Simple plugin for players to set their own custom join, leave, and death messages.
Messages can be set from /joinmsg, /leavemsg, and /deathmsg and are stored in the plugin directory under PlayerDatabase.
See a demo at
Commands
Messages are set with commands. You can clear a message by passing a blank value.
/joinmsg [message]/leavemsg [message]/deathmsg [message]
Moderators can override messages of other users if they have the hyacinthhello.mod permission node.
/hh mod joinmsg [user] [message]/hh mod leavemsg [user] [message]/hh mod deathmsg [user] [message]
Configuration
The configuration allows you to modify how the plugin looks. Here's an example:
enabled: true # Whether to enable the plugin
proxy-mode: false # Whether to enable Velocity support (see below)
proxy-redis: # Ignore if above is false
address: 0.0.0.0 # Your redis address, this is likely fine
port: 6379 # Your redis port, this is likely fine
channel: hyacinthhello # Leave default, unless you have multiple proxies with HyacinthHello
ssl: false # Leave blank unless you know you have to change this
pass: # Leave blank unless you know what to put here
database:
type: yaml # Default is yaml. Other options are mysql or postgres
# If you chose yaml, you can ignore the rest of the database config
host: 0.0.0.0
port: 3306 # Default mysql is 3306, postgres is 5432
db: hyacinthhello # Create this
user: # Fill this in
pass: # Fill this in
economy:
enabled: false # Whether to charge for changing messages
type: 'vault' # Options are vault or playerpoints
cost: # PlayerPoints only supports whole numbers (eg 10.0, not 10.5)
joinmsg: 10.0
leavemsg: 10.0
deathmsg: 10.0
prefix: "" # Prefix before command responses
wrapper-left: "&e&o" # Prefix for messages
wrapper-right: "" # Suffix for messages
maximum-message-length: 60 # Checked when player sets message
regex-filters: # Regex filters don't need to be wrapped in /
- "simpleexactmatch"
- "t[a-zA-Z]st"
Economy
Supports either Vault or Rosewood Development's PlayerPoints.
Players will not be charged for clearing their message, only setting it.
Permissions
hyacinthhello.useto use any commandshyacinthhello.modto use mod commandshyacinthhello.joinmsgto set and have join messages senthyacinthhello.leavemsgto set and have leave messages senthyacinthhello.deathmsgto set and have death messages senthyacinthhello.colorto use color in messages
Placeholders
Each message type has its own placeholder. Placeholders will not include the wrappers set in the config.
%hyacinthhello_join%%hyacinthhello_leave%%hyacinthhello_death%
Placeholders will also have color and formatting in them if the player has permission. You can exclude that:
%hyacinthhello_join-clean%%hyacinthhello_leave-clean%%hyacinthhello_death-clean%
You can also pass a username to get a specific player's message.
%hyacinthhello_join_[username]%
Velocity
With HyacinthHello Velocity, you can have HyacinthHello's custom messages broadcasted across your entire network.
The Velocity plugin can just forward to the other servers, or take over all join, leave, and death messages across the proxy. The latter option is recommended.
If you wanted to sync player's custom messages across your proxy, you could use a single MySQL or Postgres database for all of your servers.
Requires Redis.
On your server:
proxy-mode: true
proxy-redis:
address: 0.0.0.0 # Your redis address, this is likely fine
port: 6379 # Your redis port, this is likely fine
channel: hyacinthhello # Leave default, unless you have multiple proxies with HyacinthHello
ssl: # Leave blank unless you know you have to change this
pass: # Leave blank unless you know what to put here
On your proxy:
# Variables:
# {p} player name
# {s} server name
# {m} forwarded message
redis:
address: 0.0.0.0 # Your redis address, this is likely fine
port: 6379 # Your redis port, this is likely fine
prefix: hyacinthhello # Leave default, unless you have multiple proxies with HyacinthHello
ssl: # Leave blank unless you know you have to change this
pass: # Leave blank unless you know what to put here
override-backends: true # Overrides default and custom messages.
join-message: '<yellow>{p} joined {s}' # Allows setting custom formatting for join
leave-message: '<yellow>{p} left {s}' # Allows setting custom formatting for leave
death-message: '<yellow>{m}' # Just wraps over the message forwarded from backend servers
wrapper-left: '&e&o'
wrapper-right: ''
下载 HyacinthHello
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HyacinthHello
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HyacinthHello
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HyacinthHello
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HyacinthHello
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HyacinthHello
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HyacinthHello
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HyacinthHello
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HyacinthHello
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HyacinthHello
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
更新依赖项,修复过去几个月的一些小问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧