SleepVote
一款现代、轻量的睡眠百分比插件,让你的社区掌握主动权。专为 Paper 1.21+ 构建
受够了整个服务器都在等那个忙着在地下深处挖矿的玩家吗?觉得原版“全有或全无”的睡眠机制对于你们的生存社区来说已经过时了吗?
SleepVote 提供了优雅的解决方案。它用灵活、民主的系统取代了默认机制:只有当达到可配置的玩家比例时,夜晚才会被跳过。这是每个 SMP 服务器都需要的品质提升(QoL)升级。
✨ 特性
- 基于百分比的睡眠: 由你决定需要多少比例的躺在床上才能跳过夜晚。设置为
50 实现多数投票,或者设置为 0 体验经典的一人入睡即可跳过夜晚!
- 玩家驱动的忽略系统: 不想打断你的夜间建造或挖矿会话?玩家可以输入
/sleepvote ignore 暂时将自己从当晚的睡眠统计中移除。
- 轻量且高性能: 专为现代 PaperMC 服务器从头构建。SleepVote 占用极小,绝不会造成卡顿。
- 完全可配置: 直接在简洁的
config.yml 中自定义所有面向玩家的提示消息、睡眠延迟和所需百分比。支持 MiniMessage 以实现完整的颜色和样式控制。
- 按世界独立运行: 每个世界的睡眠投票是独立处理的,因此在主世界睡觉不会影响末地或其他维度中的玩家。
⌨️ 命令与权限
SleepVote 保持简单,只有一个主要命令。
⚙️ 简单配置
所有内容均由首次运行时生成的 config.yml 文件控制。
# 需要躺在床上以跳过夜晚的玩家百分比。
# 必须在 0 到 100 之间。设置为 0 可使一名玩家入睡即跳过夜晚。
percentage-needed: 50
# 当达到所需数量的玩家躺在床上后,夜晚跳过前的延迟秒数。
sleep-delay-seconds: 4
# 插件使用的消息。支持 Paper 的 MiniMessage 格式用于颜色和样式。
messages:
player-wants-sleep: "<yellow><player></yellow> 正在睡觉。还需要 <green>[<sleeping>/<required>]</green> 名玩家入睡以跳过夜晚。"
player-left-bed: "<yellow><player></yellow> 不再睡觉了。目前状态:<green>[<sleeping>/<required>]</green>"
night-skipped: "<gold>足够多的玩家正在睡觉。正在跳过夜晚...</gold>"
sleep-ignored: "<gray>你现在已忽略今晚的睡眠投票。</gray>"
already-ignoring: "<gray>你已经忽略了今晚的睡眠投票。</gray>"
reload-success: "<green>SleepVote 配置已重新加载。</green>"
no-permission: "<red>你没有权限使用此命令。</red>"
invalid-command: "<red>无效的命令用法。请使用 /sleepvote <ignore|reload></red>"
为什么选择 SleepVote?
- 现代代码: 为 Minecraft 1.21.8+ 和 Java 21 构建,确保未来的兼容性。
- 无冗余: 只做一件事并把它做到完美,没有任何不必要的功能。
- 以社区为中心: 通过公平便捷的系统赋予玩家权力。
- 真正简单: 只需拖放,即可就绪!
给你的玩家他们应得的睡眠体验。立即下载 SleepVote!
SleepVote
A modern, lightweight sleep percentage plugin that puts your community in control. Built for Paper 1.21+
Tired of your entire server waiting for that one player who is busy mining deep underground? Does the vanilla "all-or-nothing" sleep mechanic feel outdated for your survival community?
SleepVote is the elegant solution. It replaces the default mechanic with a flexible, democratic system where the night is skipped only when a configurable percentage of players are in bed. It's the quality-of-life upgrade every SMP server needs.
✨ Features
- Percentage-Based Sleep: You decide what percentage of players need to be in bed to skip the night. Set it to
50 for a majority vote, or 0 for a classic one-player-sleep experience!
- Player-Driven Ignore System: Don't want to interrupt your nightly build or mining session? Players can type
/sleepvote ignore to temporarily remove themselves from the sleep count for that night.
- Lightweight & Performant: Built from the ground up for modern PaperMC servers. SleepVote has a minimal footprint and will never cause lag.
- Fully Configurable: Customize all player-facing messages, the sleep delay, and the required percentage directly in the clean
config.yml. Supports MiniMessage for full color and style control.
- Per-World Functionality: Sleep voting is handled independently in each world, so sleeping in the Overworld won't affect players in The End or other dimensions.
⌨️ Commands & Permissions
SleepVote keeps it simple with just one main command.
⚙️ Simple Configuration
Everything is controlled from the config.yml file, generated on the first run.
# The percentage of players in the world required to be in bed to skip the night.
# Must be between 0 and 100. Set to 0 to make one player sleep skip the night.
percentage-needed: 50
# The delay in seconds after the required number of players are in bed before the night skips.
sleep-delay-seconds: 4
# Messages used by the plugin. Supports Paper's MiniMessage format for colors and styling.
messages:
player-wants-sleep: "<yellow><player></yellow> is sleeping. <green>[<sleeping>/<required>]</green> players needed to skip the night."
player-left-bed: "<yellow><player></yellow> is no longer sleeping. <green>[<sleeping>/<required>]</green>"
night-skipped: "<gold>Enough players are sleeping. Skipping the night...</gold>"
sleep-ignored: "<gray>You are now ignoring this night's sleep vote.</gray>"
already-ignoring: "<gray>You are already ignoring this night's sleep vote.</gray>"
reload-success: "<green>SleepVote configuration has been reloaded.</green>"
no-permission: "<red>You do not have permission to use this command.</red>"
invalid-command: "<red>Invalid command usage. Use /sleepvote <ignore|reload></red>"
Why Choose SleepVote?
- Modern Code: Built for Minecraft 1.21.8+ and Java 21, ensuring future compatibility.
- No Bloat: It does one thing and does it perfectly, without any unnecessary features.
- Community Focused: Empowers your players with a fair and convenient system.
- Truly Simple: Just drag, drop, and you're ready to go!
Give your players the sleep experience they deserve. Download SleepVote today!
评论 0
登录后参与评分
还没有评论,来抢沙发吧