这是一个简单的插件,允许你制作倒计时告示牌!
依赖
本插件依赖于 KotKit 以提供 Kotlin 标准库。
用法
创建
要创建一个倒计时告示牌,请对着你想要更新的告示牌输入 /signadd <Unix Timestamp> <line of sign>。
你可以在 获取任何时间的 Unix 时间戳 —— 这本质上是一种让计算机计数和理解时间的通用方式,并且可以规避时区问题。
告示牌的行号(1-4)决定了倒计时文本将显示在告示牌的哪一行。
删除
若要停止倒计时告示牌的更新,请对着你想要移除的告示牌使用 /signremove。这将不会从告示牌上删除文本,只会阻止它在未来继续更新 —— 如果愿意的话,你可以在移除后破坏该告示牌。
权限与命令
权限设置很简单,有 3 个权限分别对应 3 个相关命令。
countdownsigns.add - 默认 op - 允许 /signadd 创建告示牌
countdownsigns.remove - 默认 op - 允许 /signremove 删除告示牌
countdownsigns.reload - 默认 op - 允许 /signreload 重载配置
配置
配置中只有一个选项 format,用于决定告示牌的格式。它支持 MiniMessage 格式化,并提供 3 个可用的占位符:{d}、{h}、{m},分别对应倒计时剩余的天数、小时数和分钟数。
This is a simple plugin that allows you to make signs that countdown to a certain time!
Dependencies
This plugin depends on KotKit to provide the Kotlin stdlib.
Usage
Creation
To create a countdown sign, it's /signadd <Unix Timestamp> <line of sign>, while looking at the sign you wish to update.
You can get the Unix Timestamp for any time at - it's essentially a universal way for computers to count and understand time, and circumvents timezones.
The line of the sign, 1-4, is which line of the sign the countdown text will appear on.
Deletion
To stop a countdown sign from trying to update, use /signremove, looking at the sign you want to remove. This will not remove the text from the sign, only stop it from updating in the future - if you wish, you can break the sign once it's removed.
Permissions and commands
Permission setup is simple, there are 3 permissions attached to 3 relevant commands.
countdownsigns.add - default op - allows /signadd to create signs
countdownsigns.remove - default op - allows /signremove to delete signs
countdownsigns.reload - default op - allows /signreload to reload the config
Config
There's only one option in the config, format, which dictates the format for the sign. It supports MiniMessage formatting and has 3 available placeholders, {d}, {h}, {m}, corresponding respectively to days, hours, and minutes left on the countdown.
评论 0
登录后参与评分
还没有评论,来抢沙发吧