CustomDay 是一款功能强大且轻量级的插件,让你完全掌控服务器的昼夜循环。无论你是想为 RPG 服务器创造更漫长、更危险的夜晚,为创造模式世界设定永久的白天,还是将服务器时间与现实世界同步,CustomDay 都能提供简单直观的解决方案。
不再受限于 Minecraft 默认的 20 分钟周期,为你的社区打造完美的氛围!
✨ 核心特性
- ☀️ 自定义昼夜时长: 精确设置现实世界中白天和黑夜的持续时间。想要 30 分钟的白天和 15 分钟的夜晚?没问题!
- ? 实时同步: 将服务器时间同步到任何现实世界的时区(例如
UTC、America/New_York、Europe/London)。当你选择的时区是正午时,游戏内也将是正午!
- ⚙️ 两种强大模式: 轻松在
CUSTOM_DURATION(自定义时长)和 REAL_TIME_SYNC(实时同步)模式之间切换,以适应你的服务器需求。
- ? 直观的命令控制: 通过简单的游戏内命令随时调整所有设置。无需手动编辑配置文件并重启服务器。
- ? 智能同步开关: 使用
/customday sync on 和 /customday sync off 轻松启用或禁用实时同步,而无需担心忘记你配置的时区。
- ? 对管理员友好: 所有命令均支持完整的 Tab 补全,拥有强大的权限系统,并提供
/customday reload 命令以快速更新配置。
? 命令与权限
主命令为 /customday,别名为 /cd 和 /day。
所有命令的主要权限节点为 customday.admin。
| 命令 |
描述 |
/cd setday <minutes> |
设置白天的持续时长并启用自定义模式。 |
/cd setnight <minutes> |
设置黑夜的持续时长并启用自定义模式。 |
/cd sync <timezone> |
设置新的时区并启用实时同步模式。 |
/cd sync on |
使用当前保存的时区启用实时同步。 |
/cd sync off |
禁用实时同步并切换回自定义模式。 |
/cd reload |
重新加载插件的配置文件。 |
? 配置
配置文件设计得简洁且易于管理。你可以手动设置首选模式和时长,命令会自动为你更新文件。
示例 config.yml:
# 插件的主要运行模式。
# 可用模式:CUSTOM_DURATION, REAL_TIME_SYNC
mode: "CUSTOM_DURATION"
# CUSTOM_DURATION 模式的设置。
custom-duration:
# 白天的持续时长(以现实世界分钟为单位)。
day-minutes: 10
# 黑夜的持续时长(以现实世界分钟为单位)。
night-minutes: 10
# REAL_TIME_SYNC 模式的设置。
real-time-sync:
# 此开关通过 '/customday sync <on|off>' 控制
enabled: false
# 要同步的时区。在此查找 ID:
# [https://en.wikipedia.org/wiki/List_of_tz_database_time_zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
timezone: "UTC"
CustomDay is a powerful yet lightweight plugin that gives you complete control over your server's day-night cycle. Whether you want to create longer, more dangerous nights for an RPG server, set a permanent daytime for a creative world, or synchronize your server's time with the real world, CustomDay provides a simple and intuitive solution.
Stop being bound by Minecraft's default 20-minute cycle and create the perfect atmosphere for your community!
✨ Core Features
- ☀️ Custom Day & Night Length: Precisely set the duration of the daytime and nighttime in real-world minutes. Want a 30-minute day and a 15-minute night? No problem!
- ? Real-Time Synchronization: Sync your server's time to any real-world timezone (e.g.,
UTC, America/New_York, Europe/London). When it's noon in your chosen timezone, it will be noon in the game!
- ⚙️ Two Powerful Modes: Easily switch between
CUSTOM_DURATION and REAL_TIME_SYNC modes to fit your server's needs.
- ? Intuitive Command Control: Adjust all settings on-the-fly with simple, in-game commands. No need to manually edit the config and restart.
- ? Smart Sync Toggle: Use
/customday sync on and /customday sync off to easily enable or disable real-time sync without ever forgetting your configured timezone.
- ? Admin Friendly: Full tab-completion for all commands, a robust permission system, and a
/customday reload command for quick config updates.
? Commands & Permissions
The main command is /customday, with aliases /cd and /day.
The primary permission for all commands is customday.admin.
| Command |
Description |
/cd setday <minutes> |
Sets the duration of the daytime and enables Custom mode. |
/cd setnight <minutes> |
Sets the duration of the nighttime and enables Custom mode. |
/cd sync <timezone> |
Sets a new timezone and enables Real-Time Sync mode. |
/cd sync on |
Enables Real-Time Sync with the currently saved timezone. |
/cd sync off |
Disables Real-Time Sync and switches to Custom mode. |
/cd reload |
Reloads the plugin's configuration file. |
? Configuration
The configuration is designed to be clean and easy to manage. You can manually set your preferred mode and durations, and the commands will update the file for you.
Example config.yml:
# The main operating mode of the plugin.
# Available modes: CUSTOM_DURATION, REAL_TIME_SYNC
mode: "CUSTOM_DURATION"
# Settings for the CUSTOM_DURATION mode.
custom-duration:
# Duration of the daytime in real-world minutes.
day-minutes: 10
# Duration of the nighttime in real-world minutes.
night-minutes: 10
# Settings for the REAL_TIME_SYNC mode.
real-time-sync:
# This switch is controlled via '/customday sync <on|off>'
enabled: false
# The timezone to sync with. Find IDs here:
# [https://en.wikipedia.org/wiki/List_of_tz_database_time_zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
timezone: "UTC"
评论 0
登录后参与评分
还没有评论,来抢沙发吧