CrownSleep
一款轻量级的生存增强插件,奖励玩家睡觉的行为——提供增益效果、生命恢复、连续睡眠奖励等。
概览
CrownSleep 将 Minecraft 的睡觉机制从简单的跳过夜晚转变为一种有意义的生存仪式。持续休息的玩家将获得药水效果、生命值和饥饿值恢复、睡眠连击奖励以及可选的随机加成——所有这些都不会改变原版游戏的体验感。
专为生存 SMP 服务器设计。经过精心打磨,可配置性强,并针对性能进行了优化。
- Discord 服务器: discord.gg/M48jfjrykS
- Discord 用户:
frostedtheguy
兼容性
| 平台 |
支持情况 |
| Bukkit |
1.21 – 1.21.x |
| Spigot |
1.21 – 1.21.x |
| Paper |
1.21 – 1.21.x |
| Purpur |
1.21 – 1.21.x |
Java: 21+
API: 基于 Paper API 1.21.4 编译(它是 Spigot/Bukkit 的严格超集——在上述所有平台上运行方式完全一致)
功能
核心机制
- 生命值与饥饿值恢复 — 醒来时恢复可配置的生命值、饥饿值和饱和度。
- 醒来时的药水效果 — 为玩家授予一系列可配置的药水效果(速度、再生、饱和等),持续时间与等级均可自定义。
- 睡眠连击系统 — 连续多晚睡觉会增加增益效果的持续时间。如果现实时间间隔过长未睡觉,连击数会重置。
- 随机奖励 — 醒来时有可配置的概率获得额外经验值或特殊药水效果。
- 暴风雨奖励 — 在雷暴天气中睡觉可获得额外的可配置效果(例如幸运)。
显示与反馈
- 动作栏消息 — 醒来时显示“休息良好!”及连击计数器
- 标题 + 副标题 — 醒来时显示
- 音效 — 醒来时播放(按键、音量、音调均可配置)
- 粒子效果 — 醒来时在玩家周围生成粒子效果
系统功能
- 按世界启用/禁用 — 可在特定世界或所有世界(使用
"*")启用 CrownSleep
- PlaceholderAPI 支持 — 向记分板、标签页列表和聊天暴露连击数和奖励数据
- 重载命令 — 无需重启即可实时重载所有配置文件和消息文件
- 完整的权限支持 — 独立的
use 和 admin 节点
- 持久化连击数据 — 连击数据保存至
streaks.yml,重启后依然保留
命令
所有命令均使用 /crownsleep 或其别名 /cs。
| 命令 |
权限 |
描述 |
/crownsleep help |
crownsleep.use |
显示游戏内帮助菜单 |
/crownsleep info |
crownsleep.use |
查看插件版本、你的连击数及 PAPI 状态 |
/crownsleep reload |
crownsleep.admin |
实时重载 config.yml 和 messages.yml |
权限
| 权限 |
默认值 |
描述 |
crownsleep.use |
true (所有玩家) |
接收睡眠奖励并使用 /crownsleep help / info |
crownsleep.admin |
op |
访问 /crownsleep reload 及管理功能 |
PlaceholderAPI 占位符
需要安装 PlaceholderAPI。
| 占位符 |
返回值 |
%crownsleep_streak% |
玩家当前的睡眠连击数(整数) |
%crownsleep_bonus_seconds% |
当前连击数提供的额外增益秒数 |
%crownsleep_max_streak% |
配置的最大连击等级 |
安装
- 下载
CrownSleep-1.0.0.jar
- 将其放入服务器的
plugins/ 文件夹
- 重启或重载服务器
- 根据需要编辑
plugins/CrownSleep/config.yml
- 运行
/crownsleep reload 以实时应用更改
首次启动 会自动在 plugins/CrownSleep/ 目录下生成 config.yml、messages.yml 和 streaks.yml。
配置概览
config.yml 包含完整注释。关键部分如下:
enabled-worlds:
- "*" # 使用世界名称进行限制,或使用 "*" 表示所有世界
restoration:
enabled: true
health: 4.0 # 2.0 = 1颗心
hunger: 3
saturation: 2.0
effects:
enabled: true
list:
- type: SPEED
amplifier: 0 # 0 = I级
duration: 300 # 秒
streak:
enabled: true
bonus-duration-per-streak: 30 # 每级连击增加的额外秒数
max-streak: 7
reset-after-hours: 36
random-rewards:
enabled: true
chance: 0.25 # 每次醒来有 25% 概率触发
rewards:
- type: XP
amount: 30
- type: EFFECT
effect: LUCK
amplifier: 0
duration: 120
storm-bonus:
enabled: true
effect: LUCK
duration: 180
display:
actionbar: true
title: true
sound: true
sound-key: ENTITY_PLAYER_LEVELUP
particles: true
particle-type: VILLAGER_HAPPY
支持与定制开发
需要帮助、发现错误或希望定制开发插件?
- Discord 服务器: discord.gg/M48jfjrykS
- Discord 用户:
frostedtheguy
可提供定制插件开发服务——请在 Discord 上联系以获取报价和可用性信息。
许可证
本项目按原样提供,供私人及公共 Minecraft 服务器使用。未经作者许可,禁止重新分发或对未修改/轻微修改的版本进行转售。
CrownSleep — 让每一个夜晚的睡眠都更有价值。
CrownSleep
A lightweight survival enhancement plugin that rewards players for sleeping — buffs, health recovery, streaks, and more.
Overview
CrownSleep transforms the Minecraft sleeping mechanic from a simple night-skip into a meaningful survival ritual. Players who rest consistently are rewarded with potion effects, health and hunger restoration, sleep streaks, and optional random bonuses — all without changing the vanilla feel of the game.
Designed for survival SMP servers. Polished, configurable, and optimized for performance.
- Discord Server: discord.gg/M48jfjrykS
- Discord User:
frostedtheguy
Compatibility
| Platform |
Supported |
| Bukkit |
1.21 – 1.21.x |
| Spigot |
1.21 – 1.21.x |
| Paper |
1.21 – 1.21.x |
| Purpur |
1.21 – 1.21.x |
Java: 21+
API: Compiled against Paper API 1.21.4 (strict superset of Spigot/Bukkit — runs identically on all platforms listed above)
Features
Core Mechanics
- Health & Hunger Restoration — Sleeping restores configurable amounts of health, hunger, and saturation on wake.
- Potion Effects on Wake — Grant players a list of configurable effects (Speed, Regeneration, Saturation, etc.) with customizable durations and amplifiers.
- Sleep Streak System — Consecutive nights of sleep increase buff duration. Streaks reset if too many real-world hours pass without sleeping.
- Random Rewards — Configurable chance to receive bonus XP or a special potion effect on waking up.
- Storm Bonus — Sleeping through a thunderstorm grants an additional configurable effect (e.g. Luck).
Display & Feedback
- Actionbar messages on wake — "Well Rested!" with streak counter
- Title + subtitle display on wake
- Sound effect played on wake (configurable key, volume, pitch)
- Particle effect spawned around the player on wake
System Features
- Per-world enable/disable — Enable CrownSleep in specific worlds or all worlds with
"*"
- PlaceholderAPI support — Expose streak and bonus data to scoreboards, tab lists, and chat
- Reload command — Live reload of all config and message files without restarting
- Full permissions support — Separate
use and admin nodes
- Persistent streaks — Streak data saved to
streaks.yml, survives restarts
Commands
All commands use /crownsleep or the alias /cs.
| Command |
Permission |
Description |
/crownsleep help |
crownsleep.use |
Show the in-game help menu |
/crownsleep info |
crownsleep.use |
View plugin version, your streak, and PAPI status |
/crownsleep reload |
crownsleep.admin |
Reload config.yml and messages.yml live |
Permissions
| Permission |
Default |
Description |
crownsleep.use |
true (all players) |
Receive sleep rewards and use /crownsleep help / info |
crownsleep.admin |
op |
Access to /crownsleep reload and admin features |
PlaceholderAPI Placeholders
Requires PlaceholderAPI to be installed.
| Placeholder |
Returns |
%crownsleep_streak% |
Player's current sleep streak (integer) |
%crownsleep_bonus_seconds% |
Extra buff seconds granted by current streak |
%crownsleep_max_streak% |
Maximum streak level configured |
Installation
- Download
CrownSleep-1.0.0.jar
- Drop it into your server's
plugins/ folder
- Restart or reload your server
- Edit
plugins/CrownSleep/config.yml to your liking
- Run
/crownsleep reload to apply changes live
First boot automatically generates config.yml, messages.yml, and streaks.yml inside plugins/CrownSleep/.
Configuration Overview
config.yml is fully commented. Key sections:
enabled-worlds:
- "*" # Use world names to restrict, or "*" for all
restoration:
enabled: true
health: 4.0 # 2.0 = 1 heart
hunger: 3
saturation: 2.0
effects:
enabled: true
list:
- type: SPEED
amplifier: 0 # 0 = Level I
duration: 300 # seconds
streak:
enabled: true
bonus-duration-per-streak: 30 # extra seconds per streak level
max-streak: 7
reset-after-hours: 36
random-rewards:
enabled: true
chance: 0.25 # 25% chance on each wake-up
rewards:
- type: XP
amount: 30
- type: EFFECT
effect: LUCK
amplifier: 0
duration: 120
storm-bonus:
enabled: true
effect: LUCK
duration: 180
display:
actionbar: true
title: true
sound: true
sound-key: ENTITY_PLAYER_LEVELUP
particles: true
particle-type: VILLAGER_HAPPY
Support & Custom Development
Need help, found a bug, or want a custom plugin built?
- Discord Server: discord.gg/M48jfjrykS
- Discord User:
frostedtheguy
Custom plugin development is available — reach out on Discord for pricing and availability.
License
This project is provided as-is for use on private and public Minecraft servers. Redistribution or resale of unmodified or lightly modified versions is not permitted without permission from the author.
CrownSleep — Make every night's sleep count.
评论 0
登录后参与评分
还没有评论,来抢沙发吧