? SleepPolls
Paper 服务器的现代化睡眠投票插件。
SleepPolls 2.0 是一款专为 Paper 服务器打造的现代化、轻量级睡眠投票插件。
无需所有玩家都睡觉,当有玩家进入床铺时,SleepPolls 会启动一个交互式投票,让活跃玩家决定是否跳过夜晚。
基于现代 Paper API、Adventure Components、HikariCP、SQLite 和 MariaDB 构建。
✨ 功能特性
?️ 交互式睡眠投票
当玩家进入床铺时:
- 自动开始投票
- 玩家可以投 YES(是)或 NO(否)
- 聊天栏中出现可点击的投票按钮
- 自动计算所需票数
- 达到足够票数后瞬间跳过夜晚
? 实时投票追踪
- BossBar 倒计时
- ActionBar 更新
- 实时票数统计
- 剩余时间显示
- 所需票数显示
? 智能资格检测
SleepPolls 仅统计活跃玩家。
自动排除以下玩家:
- AFK 玩家(EssentialsX)
- 旁观者模式玩家
- 死亡玩家
- 离线玩家
? 统计系统
追踪数据:
- 总投票数
- 成功投票数
- 失败投票数
- 发起的投票次数
- 跳过的夜晚数
? 排行榜
使用以下命令与其他玩家竞争:
/sp top
? 数据库支持
可选:
所有统计数据均持久化存储。
⚙️ 完全可配置
可配置项:
- 投票持续时间
- 所需票数百分比
- BossBar 设置
- 音效
- 天气清除
- 世界黑名单
- 数据库后端
? 轻量且现代化
基于以下技术构建:
- Java 21+
- Paper API
- Adventure API
- HikariCP
- 异步数据库操作
无需 ProtocolLib。
无需 NMS。
? 命令
| 命令 |
描述 |
/sp help |
显示帮助菜单 |
/sp version |
显示插件版本 |
/sp status |
查看当前投票状态 |
/sp yes |
投票 YES(是) |
/sp no |
投票 NO(否) |
/sp stats |
查看个人统计数据 |
/sp top |
查看排行榜 |
/sp bossbar |
切换 BossBar 显示 |
/sp reload |
重载配置文件 |
别名:
/sp
/sleeppoll
? 权限
| 权限节点 |
描述 |
sleeppolls.reload |
重载配置文件 |
sleeppolls.bossbar |
切换 BossBar 显示 |
⚙️ 示例配置
poll-duration-seconds: 20
required-percentage: 50
bossbar:
enabled: true
sounds:
enabled: true
database:
type: SQLITE
? 统计数据
查看你的统计数据:
/sp stats
追踪内容:
- 总投票数
- 成功投票数
- 失败投票数
- 发起的投票次数
- 跳过的夜晚数
? 排行榜
查看最活跃的睡眠者:
/sp top
非常适合 SMP 社区。
? 世界黑名单
在特定世界中禁用睡眠投票:
worlds:
blacklist:
- lobby
- minigames
? 数据库后端
SQLite
database:
type: SQLITE
MariaDB
database:
type: MARIADB
mariadb:
host: localhost
port: 3306
database: sleeppolls
username: root
password: password
pool-size: 5
? 安装
前置要求
- Paper
- Java 21+
- Minecraft 1.21+
可选依赖:
设置步骤
- 下载 SleepPolls 2.0
- 将 jar 文件放入 plugins 文件夹
- 启动服务器
- 配置
config.yml
- 运行:
/sp reload
或重启服务器。
? 为什么选择 SleepPolls?
与许多旧的睡眠投票插件不同:
✅ 交互式的 Adventure Components
✅ 实时 BossBar 追踪
✅ ActionBar 倒计时
✅ 支持 SQLite 和 MariaDB
✅ 持久化统计数据
✅ 排行榜功能
✅ AFK 检测
✅ 世界黑名单支持
✅ 现代化的 Paper API 架构
✅ 开源
?️ 开发路线图
- Velocity 网络级睡眠投票
- PlaceholderAPI 支持
- 本地化支持
- 自定义消息
- GUI 投票界面
- Web 统计仪表板
- 按世界独立的投票设置
? 展示
❤️ 开源
SleepPolls 完全开源。
欢迎贡献代码、提交 Pull Request、提出建议以及报告 Bug。
GitHub:
? 许可证
采用 GNU GPL v3 许可证授权。
版权所有 © 2026 Monk (Monish), Amethyst Developers 及贡献者。
? SleepPolls
Modern sleep voting for Paper servers.
SleepPolls 2.0 is a modern, lightweight sleep voting plugin built specifically for Paper servers.
Instead of requiring every player to sleep, SleepPolls starts an interactive vote when someone enters a bed, allowing active players to decide whether the night should be skipped.
Built using modern Paper APIs, Adventure Components, HikariCP, SQLite, and MariaDB.
✨ Features
?️ Interactive Sleep Polls
When a player enters a bed:
- A vote automatically starts
- Players can vote YES or NO
- Clickable vote buttons appear in chat
- Vote requirements are calculated automatically
- Nights skip instantly once enough votes are reached
? Live Vote Tracking
- BossBar countdowns
- ActionBar updates
- Real-time vote counts
- Remaining time display
- Required vote display
? Smart Eligibility Detection
SleepPolls only counts active players.
Automatically excludes:
- AFK players (EssentialsX)
- Spectators
- Dead players
- Offline players
? Statistics System
Track:
- Total Votes
- Successful Votes
- Failed Votes
- Polls Started
- Nights Skipped
? Leaderboards
Compete with other players using:
/sp top
? Database Support
Choose between:
All statistics are stored persistently.
⚙️ Fully Configurable
Configure:
- Vote duration
- Required vote percentage
- BossBars
- Sounds
- Weather clearing
- World blacklist
- Database backend
? Lightweight & Modern
Built with:
- Java 21+
- Paper API
- Adventure API
- HikariCP
- Async database operations
No ProtocolLib.
No NMS.
? Commands
| Command |
Description |
/sp help |
Display help menu |
/sp version |
Show plugin version |
/sp status |
View current poll |
/sp yes |
Vote YES |
/sp no |
Vote NO |
/sp stats |
View personal statistics |
/sp top |
View leaderboard |
/sp bossbar |
Toggle BossBar |
/sp reload |
Reload configuration |
Aliases:
/sp
/sleeppoll
? Permissions
| Permission |
Description |
sleeppolls.reload |
Reload configuration |
sleeppolls.bossbar |
Toggle BossBar |
⚙️ Example Configuration
poll-duration-seconds: 20
required-percentage: 50
bossbar:
enabled: true
sounds:
enabled: true
database:
type: SQLITE
? Statistics
View your statistics:
/sp stats
Track:
- Total votes cast
- Successful votes
- Failed votes
- Polls started
- Nights skipped
? Leaderboards
See the most active sleepers:
/sp top
Perfect for SMP communities.
? World Blacklist
Disable sleep voting in specific worlds:
worlds:
blacklist:
- lobby
- minigames
? Database Backends
SQLite
database:
type: SQLITE
MariaDB
database:
type: MARIADB
mariadb:
host: localhost
port: 3306
database: sleeppolls
username: root
password: password
pool-size: 5
? Installation
Requirements
- Paper
- Java 21+
- Minecraft 1.21+
Optional:
- EssentialsX (AFK detection)
Setup
- Download SleepPolls 2.0
- Place the jar in your plugins folder
- Start the server
- Configure
config.yml
- Run:
/sp reload
or restart the server.
? Why SleepPolls?
Unlike many older sleep vote plugins:
✅ Interactive Adventure Components
✅ Live BossBar tracking
✅ ActionBar countdowns
✅ SQLite & MariaDB support
✅ Persistent statistics
✅ Leaderboards
✅ AFK detection
✅ World blacklist support
✅ Modern Paper API architecture
✅ Open Source
?️ Roadmap
- Velocity network-wide sleep voting
- PlaceholderAPI support
- Localization support
- Customizable messages
- GUI voting interface
- Web statistics dashboard
- Per-world vote settings
? Showcase
❤️ Open Source
SleepPolls is fully open source.
Contributions, pull requests, suggestions, and bug reports are always welcome.
GitHub:
? License
Licensed under GNU GPL v3.
Copyright © 2026 Monk (Monish), Amethyst Developers and contributors.
评论 0
登录后参与评分
还没有评论,来抢沙发吧