Elections
Elections!
The power to elect admins has been give to players. Using Vault, you can elect a new admin and give them all the permissions. Or you can chose a Master Builder and give them a fancy title. Allow players to chose the worst criminal, and strip them of all permissions and give them the prefix of "Criminal".
Config File
election-length: How long the voting period is in minutes. This changes how long players have to vote in an election.
Setting Up An Election
Elections are set up in the config file, and two examples are provided for you to look at. Im going to use the example of a master builder here. You can leave any field blank, or even not type it in, except for the title. All elections are placed below the "elections: " line in the config. elections: -You never want to remove this line, but you don't need to add it in for each MasterBuilder: -This is the election name, used internally, and how you refer to elections in your commands. These have to be unique names. office-time: 0 -This is how long the time in office lasts, in days. If it is less than or equal to 0, the office is never removed by the plugin. It can be removed through whatever permission plugin you are using. title: Master Builder -The prefix given to whomever wins the election. It does not overwrite the old prefix, but appends to it. max-candidates: 25 - How many players can run in a given election cycle. candidates-perm: election.run -What permission candidates need to have in order to run in the election. You cannot create a new permission here, but must use a command already in game. election-perks: [bukkit.command.gamemode] -an array of what permissions the winner gets, using a comma-seperated list in brackets.
Default Values
- office-time: 1 day
- title: no prefix
- max-candidates: 10 players a cycle
- candidates-perm: elections.run
- election-perks: No added permissions
Commands
Election names are no longer case sensitive!
Elections
- Get information about all the elections.
- Usage: /elections to list all elections, or /elections <election name> for information about a specific election.
- permission: elections.elections
Vote
- Vote for specified player in specfied election.
- Usage: /vote <election name> <player>
- permission: elections.vote
Run
- Run as a candidate in specified election.
- Usage: /run <election name>
- permission: elections.run
StartVote
- Starts the voting period for specified election.
- usage: /startvote <election name>
- permission: elections.votemaster
StartRun
- Allows players to sign up to run in specified election.
- usage: /startrun <election name>
- permission: elections.votemaster
CancelElection
- Cancels specified election without declaring a winner.
- This DOES NOT prohibit the election from being started. You have to remove it from the config files and reload the plugin to do that.
- usage: /cancelelection <election name>
- permission: elections.cancel
Permissions
elections.elections
- Allows players to use the /elections command, defaults to all players.
elections.vote
- Allows players to vote in election, defaults to all players.
elections.run
- Allows players to run in elections, defaults to all players.
- This is the default permission to run in elections.
elections.votemaster
- Allows players to start voting period and signup period for elections, defaults to OPs.
elections.cancel
- Allows players to cancel elections without declaring a winner, defaults to console only.
To-Do List
- Add commands to create new elections, delete elections, reload config file.
- Prohibit players from running if they are already in the office.
- Find ways to make the plugin more efficient and use less ram.
-
View User Profile
-
Send Message
Posted Mar 20, 2021how do i remove the tag after the term? the tag remains even the term ended
-
View User Profile
-
Send Message
Posted May 18, 2015Please continue working on this plugin... I would love to use this on my server!
-
View User Profile
-
Send Message
Posted Feb 19, 2014Is this plugin no longer being updated? It seems like it has a lot of potential. I haven't been able to find a good election plugin so far.
-
View User Profile
-
Send Message
Posted Oct 6, 2013Can I take more vote per User for the elections? So thats inportant when I have to vote tow or more Admins.
-
View User Profile
-
Send Message
Posted Apr 10, 2013@scratchcrackers:
Awesome plugin so far!
Would it be possible to execute a command when the election is completed?
I'd like to run elections for Server President, and the winner should be automatically put into the appropriate permissions group. I can do this manually with:
/pex user <player_name> group add president
so if there could be a way for me to have that command run on completion of the election it would be exactly what I need.
Is that possible? If not possible with the current version, would it be something you could implement with relative ease (and release within a few days)?
If it's something you'd need to implement in a new release, could it be in the format of a list of commands? (In case an election is run where multiple commands would be required upon completion of the election)
Thanks!
-
View User Profile
-
Send Message
Posted Mar 10, 2013@scratchcrackers
kk, thanks for letting me know, I'll keep testing the plugin on my server, love it so far, and yes, 'Democracy' is a good plugin for ideas which is inactive now. On a side note, is there any way to finish the election with a command, where it still counts the votes? Or is there a command or way we can see the progress of the votes?
-
View User Profile
-
Send Message
Posted Mar 5, 2013You can look at this plugin for ideas (very inactive) http://dev.bukkit.org/server-mods/democracy/
-
View User Profile
-
Send Message
Posted Mar 4, 2013It would be really nice if candidates for each election could be stored in config. This way we could manually add them as well.
-
View User Profile
-
Send Message
Posted Mar 1, 2013@monstercat101 This is still in early development, and I'm still working on a good way to add the /election without needing a lot of ram. There is a time limit, which is set in the config section. As for voting twice, I forgot to change the message. That's why you got "Invalid Candidate". I will take the enable/disable change in votes into consideration. And please remember that election names are case sensitive for now. Check the new file, it has the /elections command.
-
View User Profile
-
Send Message
Posted Mar 1, 2013/election, does not work, when i attempt to vote, and i miss type the vote, It directs me to type /election <election>, but when I type that it says unknown command. How does an election end? Is there a time limit. When I went to vote for a 2nd time for the same election, it said 'Invalid Candidate.' Could you add a message that says, 'You have voted for <player>, you cannot vote again,' or something like that? Or maybe a config feature that allows us to enable/disable change of votes. This is the best idea for a plugin, sorry for this spam.
-
View User Profile
-
Send Message
Posted Feb 27, 2013@monstercat101 read the description for how to start an election. Use /startrun to begin the signup process, and /startvote to start the election. As of now, elections ARE case-sensitive, so keep that in mind if it doesn't work.
-
View User Profile
-
Send Message
Posted Feb 25, 2013How do you start an election? /elections, doesnt work.
-
View User Profile
-
Send Message
Posted Feb 24, 2013Sorry this is taking long. There were more bugs than I anticipated.
-
View User Profile
-
Send Message
Posted Feb 23, 2013great idea.
-
View User Profile
-
Send Message
Posted Feb 22, 2013Yes! This looks awesome :)