此插件可按照指定时间间隔,从预设列表中随机发送一条消息,适用于向玩家提供提示或发布服务器相关信息。
支持
如需帮助、发现 Bug 或希望添加新功能,请在 Discord 上私信我:editid
权限
tips.show - 允许使用 /tips show <id>
tips.showall - 允许使用 /tips showall <id>
tips.reload - 允许使用 /tips reload
tips.toggle - 允许使用 /tips toggle (v1.1.4+)
命令
/tips show <id> - 仅对执行命令的玩家显示与指定 ID 关联的提示
/tips showall <id> - 向所有在线玩家显示指定 ID 的提示
/tips reload - 重新加载插件以应用配置更改
/tips toggle - 启用或禁用接收提示(v1.1.4+)
支持文本渐变和十六进制颜色代码
渐变
示例:<g:#FF0000>这段文字带有渐变效果!</g:#FFFF00>
十六进制颜色代码
示例:<#90CAFF>这段文字是浅蓝色
配置文件
config.yml
# 默认消息列表:
#messages
# 1: "this plugin"
# 2: "has not been"
# 3: "set up"
messages:
1: "this plugin"
2: "has not been"
3: "set up"
# 当插件重新加载时,是否应在加载后立即发送第一条消息,还是等待间隔时间结束后再发送?
# 默认值: true
send_message_on_reload: true
# 每条消息发送前需经过的时间间隔(秒)
# 默认值: 300
interval: 300
# 插件的前缀
# 默认值: "&7[&dTips&7] "
prefix: "&7[&dTips&7] "
# 错误消息的颜色代码
# 默认值: "&c"
error_color: '&c'
# 普通消息的颜色代码
# 默认值: "&a"
normal_color: '&a'
# 消息中 ID 的颜色代码
# 默认值: "&b"
id_color: '&b'
# 是否启用插件
# 默认值: true
enable: true
# 提示公告的消息格式
# 默认值: "{prefix} {id} {message}"
message_format: "{id} {message}"
# 发送提示时播放的声音,设置为 "none" 可禁用
# 默认值: "ENTITY_PLAYER_LEVELUP"
sound: "ENTITY_PLAYER_LEVELUP"
# Bstats 集成,设置为 false 可禁用,建议保持为 true,它不会共享任何个人数据
# 默认值: true
bstats: true
提示格式:
messages:
<id>: <content>
ID 可以是数字,也可以是字母字符串(大写或小写 a-z),或者是两者的混合。
内容可以是任意文本,但插件目前尚不支持十六进制颜色代码,因此暂时请使用 &<a-f,0-9> 格式。
更新配置
-
复制当前配置文件中的 "messages" 部分
-
确保不要丢失该部分内容,你可以将其上传到类似 paste.helpch.at 的 PasteBin 服务
-
删除当前的配置文件
-
重启你的服务器
-
将新配置文件中的 messages 部分替换为你保存的内容。
-
如果你有自定义颜色代码,还需要保存它们并手动在新配置文件中修改相应值。
This plugin can send a random message from a specified list every specified time, and can be useful for tips for players, or information about your server.
Support
If you need help, find a bug, or want a new feature, DM me on discord: editid
Permissions
tips.show - Allows /tips show <id>
tips.showall - Allows /tips showall <id>
tips.reload - Allows /tips reload
tips.toggle - Allows /tips toggle (v1.1.4+)
Commands
/tips show <id> - Shows whoever runs the command the tip associated with with the specified ID
/tips showall <id> - Show all online players the specified tip
/tips reload - Reload the plugin to apply configuration changes
/tips toggle - Enable or disable receiving tips (v1.1.4+)
Supports gradients and hex codes for text
Gradients
Example: <g:#FF0000>This text has a gradient!</g:#FFFF00>
Hex codes
Example: <#90CAFF>This text is light blue
Config
config.yml
# List of messages default:
#messages
# 1: "this plugin"
# 2: "has not been"
# 3: "set up"
messages:
1: "this plugin"
2: "has not been"
3: "set up"
# When the plugin gets reloaded, should it send the first message straight after, or wait for the interval to pass before sending the first message?
# default: true
send_message_on_reload: true
# The interval in seconds that should pass before sending each message
# default: 300
interval: 300
# The prefix of the plugin
# default: "&7[&dTips&7] "
prefix: "&7[&dTips&7] "
# The color code of error messages
# default: "&c"
error_color: '&c'
# The color code of normal messages
# default: "&a"
normal_color: '&a'
# The color code of ID's in the message
# default: "&b"
id_color: '&b'
# Should the plugin be enabled
# default: true
enable: true
# Message format for the tip announcements
# default: "{prefix} {id} {message}"
message_format: "{id} {message}"
# The sound to play when a tip is sent, set this to "none" to disable
# default: "ENTITY_PLAYER_LEVELUP"
sound: "ENTITY_PLAYER_LEVELUP"
# Bstats integration, set to false to disable, please keep this true, it doesn't share any personal data
# default: true
bstats: true
Tips format:
messages:
<id>: <content>
id can be a number, or a string of letters (a-z upper or lower) or a mix of both.
content can be anything, but the plugin does not support hex color codes yet, so &<a-f,0-9> for now
Updating configuration
-
Copy the "messages" section of your current config
-
Make sure you don't lose that, you could upload it to a pastebin such as paste.helpch.at
-
Delete your current configuration file
-
Restart your server
-
Replace the messages section in the new config with your saved messages section.
-
If you have custom color codes you will also need to save those and manually change the values in the new config.
下载 Tips
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tips
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tips
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tips
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tips
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tips
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tips
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tips
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tips
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tips
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
新增
十六进制颜色代码支持
要使用十六进制颜色代码,只需在文本前添加 <#hexcode>,例如:
<#90CAFF>这段文字是浅蓝色</#90CAFF>
渐变色文本支持
要使用渐变色,只需通过 <g:#hexcode> 打开渐变标签,并用 </g:#hexcode> 关闭,文本将从第一个十六进制颜色渐变到第二个,例如:
<g:#FF0000>这段文字具有渐变色!</g:#FFFF00>
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧