Let your players elect their mayor and king by a totally secret voting system
Concept
The mayor of a town can convoke an election and let the residents vote for one of the town parties. Also, the leader of a nation can convoke an election and the capital will be set to the leader's town. Players of the town/nation can vote their favourite party, then who has the most votes is elected as mayor(or as the new capital), while the previous one keeps their town ranks.
Features
- Convoke an election with a time limit
- Create your own political party
- Vote your favourite party with an intuitive GUI
- Secret vote count until the end of the election!
- Elections can be stopped at any time
- Titles and sounds on important commands and events
- All the data is saved between sessions (and considers elapsed time)
- The entire plugin works with UUIDs
- The election data is secret and no one can know who you voted
Requirements
- Spigot/Paper 1.19 or newer
- Java 17
- Towny (0.98.3.0 at least)
You can find the commands and their permissions on the plugin's wiki.
Language
The messages are translatable, and you can edit the existing file (en_US.yml) or specify a new one in config.yml
Configuration files
The plugin has a simple config.yml file and allows you to translate nearly EVERY message the players receive.
YAML:
max-duration: 10080 #maximum time an election can last in minutes (10080 minutes = 7days)
min-duration: 60 #minimum time an election can last in minutes
Mã:
prefix: '&7[&6TownyElections&7] &r'
only-player: '&cOnly a player can execute this command!'
not-enough-arguments: '&cNot enough arguments!'
not-active-election: '&cYour town does not have an active election'
active-election: '&cYour town has an active election'
no-permission: '&cNot enough permissions!'
not-in-a-town: '&cYou are not part of a town'
already-voted: '&7You have already voted'
election-convoked: '&aAn election just started!'
error-input-string: '&cError on input string!'
candidate-now: '&aYou are now a candidate!'
election-won: '&f%party% won the election and are leaders now!'
no-winner: '&cThere is no winner!'
election-lost: '&cYou lost the election!'
invalid-candidate: '&cInvalid candidate!'
you-voted: '&aYou voted for &f&l%party%'
unvoted: '&7Your vote was succesfully removed'
is-staff: '&cA city staff cannot do this'
not-in-a-nation: '&cYour town is not part of a nation'
not-active-election-nation: '&cYour nation does not have an active election'
active-election-nation: '&cYour nation has an active election'
min-duration: '&cThe duration has to be at least %min%'
max-duration: '&cThe duration has to be at most %max%'
plugin-reloaded: '&cPlugin reloaded succesfully!'
F.A.Q.
You can find the F.A.Q. here.
To-Do list
Add political parties (Work In Progress)- Make the plugin 100% translatable
- Support for databases
Support and metrics
You can report bugs on the GitHub repository.
bStats metrics here
Terms and conditions
- You are not allowed to redistribute this plugin or claim it as yours
- You are not allowed to decompile or modify it in any form
- I am not responsible for any problem or error that a server may suffers due to the misuse or operation of this plugin
- If you detect a bug (specially a critical one), please report it immediately to fix it and release a patch
- All purchases are final and no refunds will be given
- Use the discussion page or DM to report a bug before leaving a bad review
Feel free to leave a review if you like it!

