SunVote is a powerful Minecraft plugin that allows administrators and players to easily create and participate in server-wide votes. With full configuration through the config.yml file, support for colored messages, and flexible functionality, SunVote will become an indispensable tool on your server!
Key Features:
- Create votes by administrators.
- Players can vote using the /vote command.
- View vote results with the /votesource command.
- Fully configurable through the config.yml file.
- Support for colored messages using the & symbol.
- Easy configuration reload with the /votereload command.
Commands and Permissions:
- /vote <name> <vote> - allows players to participate in active votes.
- /votesource <name> - displays the results of the specified vote.
- /votesource broadcast <name> - announces the results of the vote to all players on the server.
- /votereload - reloads the plugin's configuration file.
- /vote create <name> - creates a new vote (for administrators).
- /vote remove <name> - removes the specified vote (for administrators).
Permissions:
- sunvote.vote - allows players to vote.
- sunvote.admin - allows administrators to create, remove, view vote results, and use the /votereload command.
Configuration:
The config.yml file allows you to customize all plugin messages. Example configuration:
Code (YAML):
## config.yml
messages:
vote_created
:
"Vote created successfully!"
vote_removed
:
"Vote removed successfully!"
vote_casted
:
"Vote casted successfully!"
vote_invalid_number
:
"Please enter a valid number for the vote."
vote_usage
:
"Usage: /vote <vote_name> <vote>"
vote_only_players
:
"Only players can vote!"
admin_usage
:
"Usage: /<command> <create/remove/results/broadcast/reload> <vote_name>"
unknown_action
:
"Unknown action: "
results_header
:
"Results for the vote "
reload_success
:
"Configuration reloaded successfully!"
"