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
Plugin looks great!
Going to at it to my server soon!
Every time a player gets his vote through, it says the person has an e-mail (with essentials), while he doesn't.
@LordBoos
Dealing with permissions makes me want to go to a pet shop and kick puppies around.
Currently, it defaults to allowing for players to start votes, which means you need to deny permissions. If, for whatever reason this doesn't work, inside the jar file is the plugin.yml with all the default permissions.
Permissions are not working with this plugin on my server. Players have "vote.voteno.*" and "vote.voteyes.*", but they still can start votes (they do not have "vote.startvote.[votename]" or "vote.startvote.*" permission). I have Vault and PermissionsEX.
I'm back from my long vacation, which is great for you guys, not so much for me. No work for a couple of weeks was pretty awesome.
I updated the plugin (V1.4.6_01) to the latest dev build of Bukkit (V1.4.6-R0.4), and also added an IP check for players. It's on by default, but you can shut it off by changing CheckPlayerIPAddress from true to false.
@UnitedFactions
The latest upload has 2 new values in the config, called PlayerIPAlreadyVoted and CheckPlayerIPAddress.
CheckPlayerIPAddress is default set to true, so you don't need to change it. It will check the voting player for an address that matches any of the current voters. So it's basically a first come, first serve IP address vote.
@RabidCrab
Hi RabidCrab is it possible to make the voting plugin check the IP of the voter. So people cannot make votes using alt. accounts.
Thanks! Would be fantastic if this was in this plugin. Best voting plugin for Minecraft Bukkit! TYVM!
@hibernating_bear
I'm still on holiday vacation and won't be returning until after new years. I thought I would have been able to throw out a fix before I left, but it was more of a challenge than I thought and I ran out of time.
1.4.5_01 should hold you over until I get back in a few days.
I take it this has been abandoned, as we haven't seen anything for the latest few updates to bukkit, or a fix for the auto failure that actually works properly.
Its a shame if it has been abandoned, since this is a really useful plugin, i would love to be proved wrong though
@RabidCrab
Any news on a fix for the auto failures?
@hibernatingbear
Sorry, I've been on vacation for the last week. I'll be working on it tonight.
I hate to sound pushy, but any news on a fix for this?
Further tests on my server have shown that the moment someone votes "No" the vote fails, rather than take the vote in to account and then check the percentage.
Is it possible that the coding for the vote no and vote veto are crossing?
@RabidCrab
I tried that file you had there for download, and it still didn't fix the problem, so if that was the fix attempt, it didn't work for me sadly
@hibernatingbear
I'm taking a look at it right now. I've got a temporary fix coming out, you can download it when it's active, or download this one.
@adenslayer
I have tried almost every combination of settings i can think of, nothing works.
My guess is there is something in the code that is causing this. One thing that jumps to mind after thinking about it is if it is only using integers for the percent, which would round the numbers.
@Darius013
@hibernatingbear
having the same issue, any fix yet?
@Darius013
This appears to be happening to my server too. 1 person votes "no" and the vote fails, even with the required percent set to 50
Hello, I like you'r plugin, but when a player does /vote no all the votation fails, and he is only one vs majority how do i change this? thanks!
can you add a way to add votes ingame like, /vote add (votename) (command vote will run fi successful) and remove votes ingame using, /vote remove (votename), thankyou if you add this and also i have been using your amazing plugin for about 5 months now and havent yet said thankyou so this is for you: thankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyou, i love you bro, will you marry me?
@frdmn
In whatever world the starter of the vote is in, is where the weather will change. It is impossible in Bukkit to change the weather of every world, unless of course you loop over the worlds. The code I use is at https://github.com/RabidCrab/Minecraft.Vote/blob/master/Vote/src/me/RabidCrab/Vote/CustomCommands.java on line 58.
I've tested this at least a dozen times in the last year and a half this plugin has existed. Are you testing it yourself, or just asking randomly, assuming it's not multi-world capable?