跳到正文

Sleep Vote

作者:user128142

Skip the night democratically: Sleep Vote replaces the vanilla sleep mechanic with a server-wide voting system. Right click a bed at night to start a vote, and if the majority agrees, the night is skipped for everyone.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Sleep Vote

Vote to skip the night.

Sleep Vote replaces the vanilla sleep mechanic with a community vote system. Instead of needing a majority of players to physically sleep in beds, anyone can trigger a vote and let the server decide democratically whether to skip the night.

How It Works

When a player right-clicks a bed during the night, a server-wide vote is automatically started. All players have 15 seconds (configurable) to cast their vote. If at least half of the server votes yes, the night is skipped instantly.

Commands

| Command | Description |
|—|—|
| /sleep yes | Vote to skip the night |
| /sleep no | Vote to keep the night |
| /sleep reload | Reload the config without restarting (operators only) |

Vote Rules

  • A vote is triggered automatically when a player interacts with a bed at night
  • Players can only vote once per vote
  • The vote passes if there are more yes than no votes and at least half of all online players voted yes (configurable)
  • If the vote fails, the night continues as normal

Config

The config file is created automatically the first time the server starts:

  • Fabric: config/sleep-vote.json
  • Paper / Purpur: plugins/SleepVote/config.yml

| Setting | Default | Description |
|—|—|—|
| passPercentage | 50 | Percentage (0–100) of online players that must vote yes |
| minYesVotes | 1 | Minimum number of yes votes, regardless of player count |
| voteDurationSeconds | 15 | How long a vote stays open, in seconds |

After editing, run /sleep reload or restart the server.

The config is not available in the Fabric 1.21.11 version.

Compatibility

  • Fabric: 1.21.11 and 26.1 – 26.3
  • Paper / Purpur: 1.21 – 26.3
  • Required: Fabric API (Fabric version only). The Paper version needs nothing else.

常见问题

Sleep Vote 支持哪些 Minecraft 版本?

Sleep Vote 支持 Minecraft Java 版 1.21–26.3,共 17 个版本,可用的加载器:Fabric / Paper / Purpur。下载时注意选择和你游戏版本一致的文件。

Sleep Vote 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Paper / Purpur,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分