NightVote - Player-Driven Night Skipping
Tired of nights dragging on when your players just want to get back to daytime activities?
NightVote allows your players to democratically decide whether to skip the current night!
When night begins to fall, or when triggered by an admin, a vote will start. Players can simply type `Y` or `N` in chat to cast their vote. If the majority agrees, the server time swiftly transitions to morning!
-----------------------------------------------------
Features
- Automatic Night Votes: Initiates a vote when night approaches in configured worlds.
- Manual Vote Start: Admins can trigger votes anytime.
- Simple Y/N Voting: Easy and intuitive for all players.
- Configurable:
- Vote duration.
- Minimum players required to start a vote.
- Percentage of "Yes" votes needed to pass.
- Worlds where automatic votes are enabled.
- Customizable messages (prefix, vote start/end, results, etc.).
- Permissions: Fine-grained control over who can start votes, cancel votes, and reload the config.
- Lightweight: Designed to be efficient.
-----------------------------------------------------
How to Install
- Download the `NightVote-1.0.0-SNAPSHOT.jar` (or `NightVote-1.0.0.jar` if you rebuild) from this page.
- Place it in your server's `plugins` folder.
- Restart or reload your server.
- (Optional) Configure `plugins/NightVote/config.yml` to your liking and use `/nv reload`.
-----------------------------------------------------
Commands
- `/nightvote` (Alias: `/nv`)
- Player Voting:
- Type `Y` or `Yes` in chat to vote YES.
- Type `N` or `No` in chat to vote NO.
(Requires `nightvote.vote` permission, default: true)
-----------------------------------------------------
Permissions
- `nightvote.vote` - Allows player to vote. (Default: true)
- `nightvote.admin` - Grants all admin permissions below. (Default: op)
- `nightvote.start` - Allows use of `/nv start`. (Default: op)
- `nightvote.cancel` - Allows use of `/nv cancel`. (Default: op)
- `nightvote.reload` - Allows use of `/nv reload`. (Default: op)
-----------------------------------------------------
Configuration (`config.yml`)
The `config.yml` file (generated in `plugins/NightVote/`) allows you to customize:
- `vote.duration_seconds`: How long votes last.
- `vote.min_players_to_start_auto`/`_manual`: Minimum players for votes.
- `vote.required_yes_percentage`: How many 'yes' votes are needed.
- `vote.night_start_tick` & `day_start_tick`: Game times for vote logic.
- `enabled_worlds_for_auto_vote`: List of worlds for automatic votes (e.g., `["world"]`).
- `messages`: All plugin messages are customizable!
Please see the generated `config.yml` for detailed comments on each option.
-----------------------------------------------------
Feedback & Support
Please use the
Discussion tab on this SpigotMC resource page for any feedback, questions, or bug reports.
License
This plugin is released under the
MIT License.