Vote
[1.12.2][Spigot][Bukkit] Kick, ban, restart, rain, sun, day, night, and custom votes. A simple to use and lightweight voting system with a little more functionality than the others. You can create votes that run commands on other plugins, as well as customize each vote to your hearts desire.
seewind has made a tutorial video for all the German fans of the plugin!
seewind has made a tutorial video for all the German fans of the plugin!
Features
- Allows you to create your own votes
- You can specify what command(s) to execute and in what order for both a successful and failed vote
- Fully implements Permissions using Vault, but can also default to regular Bukkit permissions
- You can choose what percentage it takes for a vote to succeed, and the minimum number of players it takes to succeed for each type of vote
- Fully customizable notifications
- Messages can be fully colorized to your hearts desire. Every single message/notification is located and editable in the config.yml
- You can pass any number of parameters you want
- Default votes are: Day, night, sun, rain, kick, and ban
- Source is available here
Configuration
Place the Vote.jar in the plugins folder. The configuration file will be created when the server is started. Make sure to have someone, doesn't matter who, as an op or it will shut down on load. The general overview of the config.yml custom commands is located here. You can read about how arguments work in Vote here. You can read about commands specific to Vote here. You can also watch the tutorial on how to create your own votes.Commands
All commands start with /vote- /vote yes/y - Votes yes on the active vote
- /vote no/n - Votes no on the active vote
- /vote [votename] - "/vote restart" will start a vote to restart the server. /vote kick rabidcrab will start a vote to kick rabidcrab
- /vote veto - Immediately cancels a vote.
- /vote reload - Reload the plugin, cancelling any outstanding vote commands, cancelling any active vote, and reloading the config file.
Permissions
If permissions are not enabled, everyone has the ability to start votes and vote.- vote.voteyes.[votename] - Allows the user or group to vote yes on [votename]. I.E vote.voteyes.restart will allow the player to vote for a restart
- vote.voteyes.* allows a player to vote yes for all votes
- vote.voteno.[votename] - Same as vote.voteyes.[votename], except for voting no
- vote.startvote.[votename] - vote.startvote.* for all, or vote.startvote.restart for restart, etc.
- vote.setvalue - The plugin runs it's own commands when voting for rain or sun. You need this permission on all admins for sun and rain votes to work correctly.
- vote.unkickable - Makes the player un-kickable
- vote.unbannable - Makes the player un-bannable
- vote.veto- Allows the player to cancel votes
- vote.reload- Reloads the plugin
Great plugin when it works. Sadly the votes usually don't get announced to all the players, so they almost never complete successfully.
Hey,
I really, really love this plugin, it has a huge potential and a lot of cool stuff.
Default config is a bit complicated and raw-style format, I dont know why, is not supported on my server so I re-created it using some Essentials commands and translated all messages into my Czech language.
If somebody wanna look, here is the link: http://mareon-cz.eu/?lnk=vote_czech
(and yeah, I removed a *ban* option because in my opinion it is something what players should not have to vote.)
Would it be possible to add a permission allowing or disallowing users to pass a variable along to their vote?
Please update for Spigot 1.11. If you post this as a premium resource on spigotmc.org, I will gladly buy it, it's the best simple voting plugin there is.
Apologies about the delay. Just uploaded V1.11_01, it should be up within a few hours.
The plugin now works perfectly on 1.11, thank you so much for the update!
Can i change the command alias for /vote? it's interfering with GAListener.
@Kompy_87
Yep, that's exactly how to do it.
The minimum votes parameter is mostly for votes with high consequences, like kicking, banning, or setting someone on fire. It helps prevent against a few trolls logging in and causing havoc with the voting system.
@RabidCrab
Thanks for the prompt reply. If I understand this correctly, I should be able to set minimumvotes to 0 and percent to 50%, and if 2 people vote yes and 5 people don't vote, it still succeeds, assuming I have IgnoreUnvoted to true?
I think my initial understanding was that minimumvotes meant the vote needed at least X number of players to toss in a vote to tally, but I guess not lol.
Basically, I want to take my current online players, ignore people who dont vote, and tally yes vs no. If yes > no, then it succeeds. If setting minimum votes screws with it, then Im fine with leaving it at 0.
EDIT: I think I have it backwards. Is percenttosucceed meaning what % of online players has to vote for it to even succeed, rather than % of yes votes?
@Kompy_87
It's minimum yes votes, not minimum votes in total. After the 4th person votes no, it's no longer possible for the minimum votes to be 4, so it immediately ends.
Don't remember why it's that way, but it was a request some time ago and people wanted it to be yes votes instead of total votes. I think people wanted it so that they can set minimum % to 0 and set the minimum votes to a number so that AFKers can hang around and not affect votes.
I have vote percent for sun set to 51%. Minimum of 3 votes. I started a vote for sun. 4 players voted yes, 1 payer voted no. The vote should have succeeded, but it failed. Why?
http://image.prntscr.com/image/6c319a9842844d39900ba67c42a14ae7.png
== Help Me ==
I'm not sure if this is only me but the plugin doesn't seem to be correctly counting the votes. If anyone votes no the vote seems to fail. I only got it after 1.10 so I can't say if its only a 1.10 issue or not.
Any help with this issue would be great :D
@SoSeDiK
Newer versions of the plugin should work with older versions of the game. It's pretty likely that 1.9_01 will support all the way back to Bukkit version 1.3.1, I'm just too lazy to try it out myself.
1.8.x support?
@NoHoPeLess
Just add anyone you know who will never log into your server, such as Notch, the maker of the game who is currently rolling in billions of dollars and too busy snorting coke off hookers to hop on anyone's server. My plugin actually did this for you a long time ago, but a bunch of people bitched about the creator of the game having admin privileges so I had to take it off.
It's critical for my plugin to have an op because it routes commands through that op. If there's no op, some of the votes won't do anything. My plugin will actually run other plugin commands without knowing about the other plugin at all, and it does it by mimicking an operator and tricking plugins into thinking that operator executed the command. It does this because a lot of modders don't read the documentation, so they forget to make their commands executable by the server and only make them usable by actual players.
Hello btw n1 plugin... so what can i do:
We have no OP and dont want anyone in the OP status...
Apologies to anyone who used this plugin for the last year or two and didn't receive any help/support.
After Bukkit was shut down, I thought the whole platform was dead. It wasn't until recently that I discovered Bukkit is not actually dead, and this plugin was still being used.
I'll be doing periodic updates and bug fixes for this plugin as long as people use it. If I'm late on a new Minecraft update, go ahead and post a request here or on GitHub and I'll get an email about it.
EDIT: I still can't help with permissions with the plugin. I utilize Bukkit's permission system, and as long as you use that, it'll work as intended.I quite literally just do a player.hasPermission("vote.startvote.kick") (etc, etc) to check permissions.
@TNTUP
I forgot to message you that 1.9_03 fixes the issue you're having, sorry about that =/.
1.9_02 and earlier had an issue with creating threads that Bukkit didn't like. 1.9_03 now follows Bukkit's and Spigot's rules for creating and managing threads which should fix your issue.
Hi, using Spigot 1.9.2 and sometimes the plugin get stuck "A vote is already active" but it isn't. Sometimes it work, sometimes the vote get stuck. I'm using the latest version, I've not noticed any stacktraces, idk how :/
EDIT: Unloaded Vote and loaded it thru PlugMan. Dryter did /vote day and it throwed this error: https://hasteb.in/vuyejipupu.vbs Please fix :x
EDIT2: Doing /vote veto (to cancel *can fix* it but it happens again. Seems the timer is broken :(