⚠️ 兼容性说明: 本插件基于 Minecraft 1.21.5 Purpur 构建。我已在 Purpur 1.21.5 和 Spigot 1.21.1 上进行了测试。它应能在 1.21.1-1.21.5 版本的 Spigot/Purpur/Paper/Bukkit 上正常运行。
如果您想报告错误或提出新插件建议,请加入我的 Discord 服务器。
这是我从 SmpMechanics 插件中提取并优化后的片段,它与 Cozy Campfire 和 BetterSleep 完美配合,形成一个和谐的整体。
⏳ CustomDayNightTime
完全掌控您服务器的时间!
CustomDayNightTime 允许您独立精确地定义白天和黑夜的持续时间。无论您想要一个适合探索的 30 分钟白天和一个提供安全感的 5 分钟黑夜,还是一个逼真的 24 小时循环,此插件都能流畅处理。它专为与 BetterSleep 无缝协作而设计,确保不会出现跳过时间的故障。
✨ 主要功能
- ⏱️ 精准时间控制: 使用实时秒数分别设置白天和黑夜的持续时间。
- 示例: 让白天持续 20 分钟(1200 秒),黑夜仅持续 5 分钟(300 秒)。
- ? 无缝集成: 内置自动检测 BetterSleep 插件的功能。如果玩家开始睡觉(快进时间),此插件会暂停自身的计时器,以防止“橡皮筋”效应或时间冲突。
- ? 玩家个性化语言: 全面支持 English 和 Polish。玩家可以通过
/ct language 切换界面语言,且选择将永久保存。
- ? 智能 Tab 补全: 命令系统非常智能。当输入
/ct day 或 /ct night 时,自动补全会优先建议当前设置的值,使调整变得极其快速。
- ? 持久化数据: 所有设置都会立即保存到
config.yml 中。重启不会丢失任何数据。
以下是更新后的 English 命令和权限表,可直接复制粘贴到您的插件描述页面。
⏳ CustomDayNightTime - 命令与权限
主命令: /ct (或 /customtime)
| 命令 |
描述 |
权限 |
默认值 |
| --- 玩家 --- |
|
|
|
/ct |
显示当前时间设置(状态)。 |
customtime.help |
✅ 所有人 |
/ct help |
显示可用命令列表。 |
customtime.help |
✅ 所有人 |
/ct language <pl/en> |
更改您的个人界面语言。 |
customtime.language |
✅ 所有人 |
| --- 管理员 --- |
|
|
|
/ct day <seconds> |
设置白天的持续时间(以秒为单位)。 |
customtime.day |
❌ OP |
/ct night <seconds> |
设置黑夜的持续时间(以秒为单位)。 |
customtime.night |
❌ OP |
/ct reload |
重新加载配置文件和语言文件。 |
customtime.reload |
❌ OP |
- 通配符权限:
customtime.*(授予完全访问权限)。
? 安装指南
- 下载
.jar 文件。
- 将其放置在服务器的
/plugins/ 文件夹中(适用于 Spigot/Paper/Purpur 1.21.x)。
- 重启服务器。
- (可选) 安装 BetterSleep 以获得终极的时间管理体验。
⚠️ Compatibility Note: This plugin is built for Minecraft 1.21.5 Purpur. I tested it on Purpur 1.21.5 and Spigot 1.21.1. It should work on 1.21.1-1.21.5 Spigot/Purpur/Paper/Bukkit.
If you want to report a bug or suggest a new plugin, join my Discord server.
This is a cut-out and improved fragment of my SmpMechanics plugin and forms a harmonious whole with Cozy Campfire and BetterSleep.
⏳ CustomDayNightTime
Take full control of time on your server!
CustomDayNightTime allows you to precisely define the duration of the day and night independently. Whether you want a 30-minute day for exploration and a 5-minute night for safety, or a realistic 24-hour cycle, this plugin handles it smoothly. It is designed to work flawlessly alongside BetterSleep, ensuring no time-skipping glitches occur.
✨ Key Features
- ⏱️ Precision Time Control: Set the duration of Day and Night separately using real-time seconds.
- Example: Make days last 20 minutes (1200s) and nights just 5 minutes (300s).
- ? Seamless Integration: Built to detect the BetterSleep plugin automatically. If players start sleeping (fast-forwarding time), this plugin pauses its own timer to prevent "rubber-banding" or time conflicts.
- ? Per-Player Language: Full support for English and Polish. Players can switch their interface language via
/ct language, and the choice is saved permanently.
- ? Smart Tab-Completion: The command system is intelligent. When typing
/ct day or /ct night, the autocomplete suggests the currently set value first, making adjustments incredibly fast.
- ? Persistent Data: All settings are saved to
config.yml instantly. No data loss on restarts.
Here are the updated, English command and permission tables, ready to be pasted into your plugin description page.
⏳ CustomDayNightTime - Commands & Permissions
Main command: /ct (or /customtime)
| Command |
Description |
Permission |
Default |
| --- PLAYER --- |
|
|
|
/ct |
Displays current time settings (Status). |
customtime.help |
✅ Everyone |
/ct help |
Displays the list of available commands. |
customtime.help |
✅ Everyone |
/ct language <pl/en> |
Change your personal interface language. |
customtime.language |
✅ Everyone |
| --- ADMIN --- |
|
|
|
/ct day <seconds> |
Set the duration of the day (in seconds). |
customtime.day |
❌ OP |
/ct night <seconds> |
Set the duration of the night (in seconds). |
customtime.night |
❌ OP |
/ct reload |
Reloads configuration and language files. |
customtime.reload |
❌ OP |
- Wildcard Permission:
customtime.* (Grants full access).
? Installation
- Download the
.jar file.
- Place it in the
/plugins/ folder of your server (Spigot/Paper/Purpur 1.21.x).
- Restart the server.
- (Optional) Install BetterSleep for the ultimate time-management experience.
评论 0
登录后参与评分
还没有评论,来抢沙发吧