🌅 Daybreak
体验应有的夜间睡眠:星辰流转,旭日跃过山丘,所有人都在温暖的“早安”中醒来。
并非所有人都必须上床。设置一个百分比,将 AFK(挂机)玩家排除在计数之外,观看流畅的延时动画,而非原版那种突然跳转到清晨的生硬切换。
仅服务器端运行。无需资源包、无需模组、无依赖项。 支持 Paper 和 Folia,1.20 → 26.x。
✨ 功能特性
🌙 合理的睡眠比例
- 选择需要睡觉的玩家数量,从一名玩家到所有人(默认 50%)。
- AFK 玩家不会阻碍夜晚结束。 任何闲置超过 5 分钟的玩家将被排除在计数之外,直到他们移动、聊天或点击。
- 旁观者模式玩家和隐身玩家(SuperVanish、PremiumVanish、EssentialsX 等)也会被排除。创造模式玩家可选择性排除。
daybreak.ignore 权限可完全排除工作人员或机器人。
- 即使是一秒前还在 AFK 状态的玩家,一旦进入床铺也会立即计入。
⏩ 真实的延时动画,而非跳剪
- 当足够多的玩家入睡后,夜晚将在约 8 秒内播放完毕:月亮落下,星空在头顶旋转,太阳从地平线升起。
- 过程平滑加速并柔和过渡到日出,而非猛然切入。
- 每位入睡者都有帮助: 即使在未达到所需人数之前,每有一名玩家在床上,夜晚流逝的速度就会稍微加快一点。
- 有人离开床铺?夜晚速度会恢复至正常,没有任何负面影响。
- 兼容光影插件:天空、云层和阴影以连贯流畅的动作扫过整个世界。
📊 清晰的状态显示
- Boss 栏显示
☾ 2/3 sleeping · 03:40(当前睡眠人数/总需求人数 · 剩余时间),以及当前时间和夜晚剩余进度。一旦开始跳过夜晚,Boss 栏会变金色。
- 动作栏显示还需要多少名玩家入睡(替代了原版令人困惑的文本提示)。
- 当有玩家上床时发送简短的聊天消息,并对频繁上下床的行为设置了防刷屏冷却时间。
☀️ 值得期待的清晨
- 带有天数和服务端已度过的夜晚总数的**“早安”标题**。
- 柔和的铃声、晴朗的天空,休息充足的玩家将获得几秒的生命恢复效果。
- 幻翼不再攻击入睡的玩家,也可选择性地不再攻击世界中的所有人。
- 白天的雷暴也可以通过睡觉跳过,并伴有专属的“天晴”问候语。
🛡️ 安全整洁
- 不修改任何游戏规则。 Daybreak 通过事件拦截原版的“直接跳到早晨”机制,因此卸载插件后,你的世界将保持原样。
- 原生支持 Folia: 时间和天气在全局区域运行,所有涉及玩家的操作都在该玩家自己的线程上进行。
- 整个服务器仅需一个轻量级任务,无需扫描整个世界。
- 按世界隔离:支持白名单或黑名单世界。下界和末地永远不会受到影响。
⌨️ 命令
| 命令 |
描述 |
权限 |
/daybreak status [world] |
查看谁在睡觉、还需多少人、AFK 人数、时钟、天数、天气、已度过的夜晚数 |
daybreak.status |
/daybreak skip [world] |
立即跳过夜晚(或雷暴) |
daybreak.admin |
/daybreak reload |
重新加载配置和消息文件 |
daybreak.admin |
别名:/db, /sleepstatus。拥有 daybreak.ignore 权限(默认关闭)可将玩家排除在计数之外。daybreak.notify(OP)可向管理员发送更新通知。
⚙️ 配置
sleep:
percentage: 50
ignore:
spectators: true
creative: false
vanished: true
afk-seconds: 300
time-lapse:
seconds: 8 # 跳过夜晚所需的时长
partial-speedup: 3.0 # 每位入睡者对夜晚速度的加成系数 (1 = 关闭)
ramp-seconds: 1.0
storms:
skip-thunderstorms: true
morning:
clear-weather: true
title: true
sound: 'minecraft:block.note_block.chime'
well-rested:
- 'regeneration:1:8'
reset-phantoms-for-everyone: false
display:
boss-bar: true
boss-bar-color-waiting: blue
boss-bar-color-skipping: yellow
action-bar: true
bed-message: true
bed-message-cooldown: 15
twelve-hour-clock: false
所有消息均使用 MiniMessage 格式,因此渐变、颜色和符号均可自定义。内置英语和波兰语,你可以添加自己的 lang/<name>.yml 语言文件。执行 /daybreak reload 即可实时应用所有更改。
🔌 PlaceholderAPI
| 占位符 |
值 |
%daybreak_sleeping% |
正在睡觉的玩家数量 |
%daybreak_needed% |
必须睡觉才能跳过夜晚的玩家数量 |
%daybreak_missing% |
还需要多少名玩家入睡 |
%daybreak_afk% |
因 AFK 而被排除的玩家数量 |
%daybreak_time% |
当前时间,例如 21:30 |
%daybreak_day% |
当前天数 |
%daybreak_nights% |
在该世界中已度过的夜晚总数 |
%daybreak_skipping% |
正在跳过夜晚时为 true |
🧑💻 开发者接口
NightSkipEvent(可取消)在跳过夜晚或雷暴之前触发。MorningEvent 在日出时触发,包含天数和入睡的玩家列表。
@EventHandler
public void onSkip(NightSkipEvent event) {
if (bossFightRunning(event.getWorld())) event.setCancelled(true);
}
@EventHandler
public void onMorning(MorningEvent event) {
event.getSleepers().forEach(id -> giveDailyReward(id));
}
📦 兼容性
|
|
| 服务端 |
Paper, Folia, Purpur 及其他 Paper 分支 |
| 版本 |
1.20 → 26.x |
| Java |
17+ (1.20.5 及以上版本需 Java 21+,与 Minecraft 本身要求一致) |
| 依赖项 |
无。PlaceholderAPI 为可选依赖 |
| 客户端 |
原版 Minecraft。无需安装任何内容 |
不支持纯 Spigot:Daybreak 使用了 Paper 的计划任务和文本 API。
🐞 发现 Bug 或有建议?
请在我们的 Discord 上报告。 这是处理 Bug 报告的唯一渠道,请勿使用其他渠道。
🌅 Daybreak
Sleep through the night the way it should feel: the stars spin by, the sun races up over the hills, and everyone wakes to a warm "Good morning".
Not everyone has to be in bed. Set a percentage, leave AFK players out of the count, and watch a smooth time-lapse instead of vanilla's sudden jump to morning.
Server-side only. No resource pack, no mods, no dependencies. Paper and Folia, 1.20 → 26.x.
✨ Features
🌙 Sleep percentage that makes sense
- Choose how many players must sleep, from one player to everyone (default 50%).
- AFK players don't block the night. Anyone idle for 5 minutes is left out of the count, until they move, chat or click.
- Spectators and vanished players (SuperVanish, PremiumVanish, EssentialsX…) are left out too. Creative players optionally.
daybreak.ignore leaves staff or bots out completely.
- Getting into bed always counts, even for someone who was AFK a second ago.
⏩ A real time-lapse, not a jump cut
- Once enough players are asleep, the night plays out in about 8 seconds: the moon sets, the stars wheel overhead and the sun climbs over the horizon.
- It spins up smoothly and eases into the sunrise instead of slamming into it.
- Every sleeper helps: even before there are enough, each player in bed makes the night run a little faster.
- Someone gets out of bed? The night slows back down to normal, no harm done.
- Works with shaders: the sky, clouds and shadows sweep across the world in one fluid motion.
📊 Everyone knows what's going on
- A boss bar shows
☾ 2/3 sleeping · 03:40, the clock and how much of the night is left. It turns gold once the night is being skipped.
- An action bar says how many more players are needed (and replaces vanilla's confusing text).
- A short chat message when someone goes to bed, with an anti-spam cooldown for bed jumpers.
☀️ A morning worth waking up for
- A "Good morning" title with the day number and how many nights your server has slept through.
- A soft chime, clear skies, and well-rested players get a few seconds of Regeneration.
- Phantoms leave sleepers alone, and optionally everyone in the world.
- Daytime thunderstorms can be slept away too, with their own "Clear skies" greeting.
🛡️ Clean and safe
- No game rules are changed. Daybreak blocks vanilla's jump-to-morning with an event, so removing the plugin leaves your world exactly as it was.
- Folia native: time and weather run on the global region, everything that touches a player on that player's own thread.
- One light task for the whole server, nothing scanning the world.
- Per-world: whitelist or blacklist worlds. The Nether and the End are never touched.
⌨️ Commands
| Command |
Description |
Permission |
/daybreak status [world] |
Who is sleeping, how many are needed, AFK count, clock, day, weather, nights slept through |
daybreak.status |
/daybreak skip [world] |
Skip the night (or the thunderstorm) right now |
daybreak.admin |
/daybreak reload |
Reload config and messages |
daybreak.admin |
Aliases: /db, /sleepstatus. daybreak.ignore (off by default) leaves a player out of the count. daybreak.notify (op) tells admins about updates.
⚙️ Configuration
sleep:
percentage: 50
ignore:
spectators: true
creative: false
vanished: true
afk-seconds: 300
time-lapse:
seconds: 8 # how long a skipped night takes
partial-speedup: 3.0 # each sleeper speeds up the night a little (1 = off)
ramp-seconds: 1.0
storms:
skip-thunderstorms: true
morning:
clear-weather: true
title: true
sound: 'minecraft:block.note_block.chime'
well-rested:
- 'regeneration:1:8'
reset-phantoms-for-everyone: false
display:
boss-bar: true
boss-bar-color-waiting: blue
boss-bar-color-skipping: yellow
action-bar: true
bed-message: true
bed-message-cooldown: 15
twelve-hour-clock: false
Every message is MiniMessage, so gradients, colors and symbols are all yours. English and Polish are included, and you can add your own lang/<name>.yml. /daybreak reload applies everything live.
🔌 PlaceholderAPI
| Placeholder |
Value |
%daybreak_sleeping% |
Players in bed |
%daybreak_needed% |
Players that must be in bed |
%daybreak_missing% |
How many more are needed |
%daybreak_afk% |
Players left out for being AFK |
%daybreak_time% |
The clock, e.g. 21:30 |
%daybreak_day% |
Day number |
%daybreak_nights% |
Nights slept through in this world |
%daybreak_skipping% |
true while the night is being skipped |
🧑💻 For developers
NightSkipEvent (cancellable) fires right before a night or storm is skipped. MorningEvent fires at sunrise with the day number and the players who slept.
@EventHandler
public void onSkip(NightSkipEvent event) {
if (bossFightRunning(event.getWorld())) event.setCancelled(true);
}
@EventHandler
public void onMorning(MorningEvent event) {
event.getSleepers().forEach(id -> giveDailyReward(id));
}
📦 Compatibility
|
|
| Servers |
Paper, Folia, Purpur and other Paper forks |
| Versions |
1.20 → 26.x |
| Java |
17+ (21+ for 1.20.5 and newer, as Minecraft itself requires) |
| Dependencies |
None. PlaceholderAPI optional |
| Clients |
Vanilla. Nothing to install |
Plain Spigot is not supported: Daybreak uses Paper's schedulers and text APIs.
🐞 Found a bug or have an idea?
Report it on our Discord. That is the only place bug reports are handled, so please don't use other channels.
评论 0
登录后参与评分
还没有评论,来抢沙发吧