Tips

一个简单的插件,用于每隔指定时间发送消息。

资源图片
一个允许玩家控制生物生成的Spigot插件。 这个插件可以每隔指定的时间从指定的列表中发送一条随机消息,可以用于向玩家提供提示,或提供有关您服务器的信息。 # 支持 如果您需要帮助,发现错误或想要新功能,请在discord上私信我:`editid` ## 权限 `tips.show` - 允许使用 `/tips show ` `tips.showall` - 允许使用 `/tips showall ` `tips.reload` - 允许使用 `/tips reload` `tips.toggle` - 允许使用 `/tips toggle` (v1.1.4+) ## 指令 `/tips show ` - 向执行命令的玩家显示与指定ID关联的提示 `/tips showall ` - 向所有在线玩家显示指定的提示 `/tips reload` - 重新加载插件以应用配置更改 `/tips toggle` - 启用或禁用接收提示 (v1.1.4+)
config.yml ``` # 消息列表默认: #messages # 1: "this plugin" # 2: "has not been" # 3: "set up" messages: 1: "this plugin" 2: "has not been" 3: "set up" # 插件重新加载时,是否在加载后立即发送第一条消息,或者等待间隔时间过去后再发送第一条消息? # default: true send_message_on_reload: true # 在发送每条消息之前应经过的秒数间隔 # default: 300 interval: 300 # 插件的前缀 # default: "&7[&dTips&7] " prefix: "&7[&dTips&7] " # 错误消息的颜色代码 # default: "&c" error_color: '&c' # 正常消息的颜色代码 # default: "&a" normal_color: '&a' # ID在消息中的颜色代码 # default: "&b" id_color: '&b' # 是否启用插件 # default: true enable: true # 提示公告的消息格式 # default: "{prefix} {id} {message}" message_format: "{id} {message}" # 发送提示时播放的声音,设置为“none”以禁用 # default: "ENTITY_PLAYER_LEVELUP" sound: "ENTITY_PLAYER_LEVELUP" # Bstats 集成,设置为 false 可禁用,请保持此选项为 true,它不共享任何个人数据 # default: true bstats: true ```
## 提示格式: ``` messages: : ``` id可以是数字,或者字母(a-z 大写或小写)的字符串,或两者的混合。 content 可以是任何内容,但该插件目前不支持十六进制颜色代码,因此暂时使用 & ## 更新配置 1. 复制当前config中的“messages”部分 ![Messages section in config](https://i.imgur.com/gOqsIX6.png) 2. 确保您没有丢失它,您可以将其上传到粘贴库,例如 [paste.helpch.at](https://paste.helpch.at/) 3. 删除您当前的配置文件 4. 重新启动您的服务器 5. 使用保存的消息部分替换新config中的消息部分。 6. 如果您有自定义颜色代码,您还需要保存它们并在新config中手动更改值。