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
-
View User Profile
-
Send Message
Posted Oct 17, 2012Create command
/vy - Vote Yes
/vn - Vote No
-
View User Profile
-
Send Message
Posted Oct 17, 2012hi this plugin is great, but please can you add this feature:
The timer should write a message every 10 secconds (configureable).
-
View User Profile
-
Send Message
Posted Oct 12, 2012@kbryantLA24
Doing a /reload will reload the config.yml and everything else with the plugin. It's more effective than anything I could write out due to it being a command I can't run from the plugin itself.
-
View User Profile
-
Send Message
Posted Oct 12, 2012@RabidCrab
Perfect, thanks! Another request if you don't mind, and whenever you find time... A command to reload the config.yml? Currently I have to restart the server every time I make a small change and want to reload the config.
-
View User Profile
-
Send Message
Posted Oct 12, 2012@kbryantLA24
Looks like it was a minor vote verification issue on my part. 1.3.2_08 will have a fix for this.
-
View User Profile
-
Send Message
Posted Oct 12, 2012@Mayhem777
It was a pretty special issue. Yet again, YML felt like going full retard on me. To fix the issue, either update vote to 1.3.2_08, or simply go in the yml, navigate to VoteYesCommands, and change yes to 'yes'. Adding the single quotes will fix the problem.
-
View User Profile
-
Send Message
Posted Oct 7, 2012(/vote yes) tells me "yes does not exists" but (/vote y) works fine..
-
View User Profile
-
Send Message
Posted Oct 7, 2012Okay so for now I've been keeping MinimumVotes to "1"... My impression was that this specified the minimum number of votes that was needed for the vote to pass or fail. It turns out it's acting like a "maximum votes." So... MinimumVotes=1. I start the vote, my vote is counted. The moment one other person votes, the voting ends immediately and decides the outcome based on those two votes.
Ideally, it should be: MinimumVotes = 4, so wait the full 60 seconds for voting to finish to get a good idea what the population wants. If less than 4 people voted, vote fails. If more than 4 people voted, tally up everybody's votes.
Sorry for bothering you so much!
-
View User Profile
-
Send Message
Posted Oct 5, 2012So I'm having a new issue, sorry to keep bothering you.
Every time I make even SLIGHT changes to the config, then start up the server, the voting plugin stops working. Whenever someone starts a vote, it automatically says:
Vote to [action] [player] failed! Vote to [action] [player] failed!
The vote fails IMMEDIATELY after the player executes the votes. I am absolutely positive my spacing (and any other yml specifics) are correct. All I did was change some of the numbers to like voting cooldowns and other timers.
UPDATE: I may have found the culprit - this happens the moment I set "MinimumVotes" to something greater than 1. I haven't tested this on my actual dedicated server yet, but that's what seems to be the problem when I try it on my local test server.
-
View User Profile
-
Send Message
Posted Oct 4, 2012@RabidCrab
Sounds good! This feature would be perfect... About 90% of my players are used to using partial names so most of the votes don't execute because they're typing in partial names.
-
View User Profile
-
Send Message
Posted Oct 3, 2012@kbryantLA24
Hmm, I wonder what it would take to do a partial name match. I'll get back to you in a bit about that, I'm not sure what all I'd have to change.
-
View User Profile
-
Send Message
Posted Oct 3, 2012I may have spoke too soon. I tested this locally on my own PC, but once I upload it to my actual server (same files, config, versions, everything) the vote goes through fine but the command never executes.. the person never actually gets banned/kicked/muted/jailed, etc..
EDIT: I am using Essentials "kick" and "tempban" and "mute" and "tjail"... turns out you need to use the FULL player name, instead of typing part of it (like you usually can do with Essentials)... So in conclusion yes it works, as long as you type the full name.
-
View User Profile
-
Send Message
Posted Oct 3, 2012@RabidCrab
Looks like it's working perfectly, thanks!
-
View User Profile
-
Send Message
Posted Oct 2, 2012@kbryantLA24
It checks once every few seconds, and clears out after a server restart. The cpu/memory load is so small that I'd be surprised if you could accurately monitor it with a memory/cpu monitoring program.
Since approval takes so long, I went ahead and put the latest version on my dropbox for you to try out. I'm not sure why the debug messages are still showing, but I know this one doesn't.
-
View User Profile
-
Send Message
Posted Oct 2, 2012Also, what if the player never signs back on? Will this verifying for a player to come back on lag the server? Or does it expire after a cooldown?
Thanks again for this awesome plugin!
-
View User Profile
-
Send Message
Posted Oct 2, 2012They finally approved it. I downloaded the newest version and I'm still getting the debug messages. I'm being spammed with "myName = playerToKickName" when it's verifying whether the player is online or not.
-
View User Profile
-
Send Message
Posted Oct 1, 2012@kbryantLA24
Yeah, I was hoping they would have re-approved by now. I accidently left debug code in there, and it would have spammed the server pretty hard if it went live.
-
View User Profile
-
Send Message
Posted Oct 1, 2012Did you take the newest update down? I can't see it anymore...
-
View User Profile
-
Send Message
Posted Oct 1, 2012@RabidCrab
Wow, thanks for the quick update! I'll test it out when I get home from work!
-
View User Profile
-
Send Message
Posted Oct 1, 2012@kbryantLA24
V1.3.2_07 has been uploaded for approval. It added a VERIFYPLAYERONLINE option to both the kick and ban commands, and can be added to any command list. I recommend placing it at the top of the commands to execute, because it will not execute anything until the target player is online.
VERIFYPLAYERONLINE is not restricted to checking a single person, but it is restricted to a single person per command line. So you can't do something like VERIFYPLAYERONLINE [%0] [%1], but you can do:
- VERIFYPLAYERONLINE [%0] - VERIFYPLAYERONLINE [%1]