? SleepVoter
一起跳过夜晚。 SleepVote 将睡眠转化为全服公平的投票机制——不再是一个玩家强行让天亮了,也不再是当一半服务器成员处于挂机状态时漫长的黑夜。当有人躺进床铺,投票随即开始,一旦达到足够的支持人数,所有玩家都将跳过夜晚。
轻量级、完全可配置,兼容 Spigot & Paper 1.18 – 26.x.x +。
✨ 功能特性
- ?️ 睡眠投票 — 当玩家上床时,自动发起全服范围的投票。
- ? 实时进度广播 — 所有人都会看到当前的计数,例如
2/5 players are sleeping! Need 50% to skip the night.(2/5 名玩家正在睡觉!需要 50% 才能跳过夜晚。)
- ? 自动跳过夜晚 — 一旦达到阈值,时间直接跳至清晨,并且(可选地)清除恶劣天气。
- ? 实时更新 — 离开床铺会立即更新计数。如果所有人都下床,投票将被干净利落地取消。
- ? 可选的“反对”投票 — 玩家可以通过
/sleepvote no 投票反对跳过夜晚。足够的反对票将导致投票失败。
- ⏱️ 投票超时 — 如果在规定时间内未达到阈值,投票将优雅地过期(默认:60秒)。
- ? 完全可配置的消息 — 每条消息都支持颜色代码和自定义前缀。
- ? 热重载 — 修改配置文件后,通过
/sleepvote reload 即时应用更改。
? 命令
| 命令 |
描述 |
权限节点 |
/sleepvote no / /sv no |
投出反对跳过夜晚的票 |
sleepvote.novote |
/sleepvote reload / /sv reload |
重新加载配置文件 |
sleepvote.reload |
? 权限
| 权限节点 |
描述 |
默认设置 |
sleepvote.novote |
允许投出“反对”票 |
true(所有玩家) |
sleepvote.reload |
允许重新加载配置 |
op(管理员) |
⚙️ 配置文件
# 必须入睡的在线玩家百分比以跳过夜晚
sleep-percentage: 50
# 取消跳过夜晚所需的“反对”票百分比
no-vote-percentage: 50
# 未满足的投票在多少秒后过期
vote-timeout-seconds: 60
# 允许玩家投票反对跳过夜晚
enable-no-voting: true
# 在跳过夜晚时清除暴风雨/雷暴天气
clear-weather: true
messages:
prefix: "&e[SleepVote] &r"
# ... 所有消息均可使用 & 颜色代码完全自定义
消息中可用的占位符: %sleeping%、%needed%、%percentage%、%novotes%、%player%
? 安装指南
- 下载
SleepVote.jar。
- 将其放入服务器的
plugins/ 文件夹中。
- 重启服务器。
- 根据需要编辑
plugins/SleepVote/config.yml,然后运行 /sleepvote reload。
? SleepVoter
Skip the night together. SleepVote turns sleeping into a fair, server-wide vote — no more one player forcing the sunrise, and no more endless nights when half the server is AFK. When someone hops into bed, a vote begins, and once enough players agree, the night is skipped for everyone.
Lightweight, fully configurable, and compatible with Spigot & Paper 1.18 – 26.x.x +.
✨ Features
- ?️ Sleep Voting — When a player gets into bed, a server-wide vote starts automatically.
- ? Live Progress Broadcasts — Everyone sees the current count, e.g.
2/5 players are sleeping! Need 50% to skip the night.
- ? Automatic Night Skip — Once the threshold is reached, time jumps to morning and (optionally) the weather clears.
- ? Real-Time Updates — Leaving a bed instantly updates the count. If everyone gets out, the vote is cancelled cleanly.
- ? Optional "No" Voting — Players can vote against skipping with
/sleepvote no. Enough no-votes and the vote fails.
- ⏱️ Vote Timeout — If the threshold isn't met in time, the vote expires gracefully (default: 60s).
- ? Fully Configurable Messages — Every message supports color codes and a custom prefix.
- ? Live Reload — Change the config and apply it instantly with
/sleepvote reload.
? Commands
| Command |
Description |
Permission |
/sleepvote no / /sv no |
Cast a vote against skipping the night |
sleepvote.novote |
/sleepvote reload / /sv reload |
Reload the configuration |
sleepvote.reload |
? Permissions
| Permission |
Description |
Default |
sleepvote.novote |
Allows casting a "no" vote |
true (all players) |
sleepvote.reload |
Allows reloading the config |
op |
⚙️ Configuration
# Percentage of online players that must sleep to skip the night
sleep-percentage: 50
# Percentage of "no" votes needed to cancel the skip
no-vote-percentage: 50
# Seconds before an unmet vote expires
vote-timeout-seconds: 60
# Allow players to vote against skipping
enable-no-voting: true
# Clear storms/thunder when the night is skipped
clear-weather: true
messages:
prefix: "&e[SleepVote] &r"
# ... all messages fully customizable with & color codes
Placeholders available in messages: %sleeping%, %needed%, %percentage%, %novotes%, %player%
? Installation
- Download
SleepVote.jar.
- Drop it into your server's
plugins/ folder.
- Restart the server.
- Edit
plugins/SleepVote/config.yml to taste, then run /sleepvote reload.
评论 0
登录后参与评分
还没有评论,来抢沙发吧