插件配置 | ServerShutdown
大约 1 分钟
配置文件说明
配置文件位置
提示
配置文件位置:plugins/ServerShutdown/config.yml
配置项说明
1. 消息配置 📝
messages:
# 倒计时消息模板
countdown: "&c服务器将在 {time} 后关闭"
# 命令相关消息
no-permission: "&c你没有权限使用此命令!"
wrong-usage: "&c用法: /lhstop <秒数>"
invalid-number: "&c请输入一个有效的数字!"
number-too-small: "&c请输入一个大于0的数字!"
shutdown-scheduled: "&a服务器将在 {seconds} 秒后关闭。"
reload-success: "&a配置文件已重新加载!"
reload-failed: "&c配置文件重新加载失败!"
no-admin-permission: "&c你没有权限使用管理员命令!"
no-task-running: "&c当前没有正在运行的关服任务!"
shutdown-cancelled: "&a关服任务已取消!"2. 时间格式设置 ⏰
time-format:
minute: "{minutes} 分钟"
second: "{seconds} 秒"3. 提示时间点配置 🔔
announce-times:
- 600 # 10分钟
- 300 # 5分钟
- 60 # 1分钟
- 10 # 10秒
- 5
- 4
- 3
- 2
- 1变量说明
可用变量
{time}- 倒计时消息中的时间显示{seconds}- 具体的秒数{minutes}- 转换后的分钟数
颜色代码
注意
消息中可以使用以下颜色代码:
&a- 绿色&b- 青色&c- 红色&e- 黄色&f- 白色&l- 粗体&n- 下划线&o- 斜体&r- 重置格式
