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 Sep 8, 2012@Luxius96
Yup. Each one of the votes is a template. I was actually in the process of making a video when the login server went down. Once it's back up, I'll be uploading a video as to how to create a new vote.
-
View User Profile
-
Send Message
Posted Sep 8, 2012Can you add a custom vote? Example:
Want an event? the player can vote yes or no
-
View User Profile
-
Send Message
Posted Sep 8, 2012@AmoebaMan
Huh, I thought it could. I'll look into it and see what it'll take to pull that off.
-
View User Profile
-
Send Message
Posted Sep 8, 2012You ought to allow the Console to start votes.
-
View User Profile
-
Send Message
Posted Sep 8, 2012@Mayhem777
It works with R0.2 as well, I just checked. There's no option for R0.2 in the file uploader yet, so I'll just update the description to say it works for R0.2 as well.
-
View User Profile
-
Send Message
Posted Sep 8, 2012@Slang4201
If it determines that no matter what the vote will pass/fail, it will just pass/fail that vote immediately.
If you want the votes to require more people, you can change the "MinimumVotes" value in the config.yml for the votes.
I currently don't have an option to override the automatic check, but I can add it if you want since it wouldn't be a huge undertaking. If I add the override, it wouldn't immediately go to success/fail, so a player joining/leaving could modify the vote.
-
View User Profile
-
Send Message
Posted Sep 8, 2012@RabidCrab
hey whenever i start a vote it says slang4201 started such and such but then it immediately ends?
-
View User Profile
-
Send Message
Posted Sep 8, 2012@Mayhem777
nice server
-
View User Profile
-
Send Message
Posted Sep 8, 2012The R: V1.3.2_01 for CB 1.3.2-R0.1 version works for R2? :)
-
View User Profile
-
Send Message
Posted Sep 7, 2012V1.3.2_01 has been uploaded, and should be available in a few hours.
I modified the config.yml to use the vote starters name in the vote start message. So instead of "A vote has started!", it's now "Rabidcrab has started a vote on such and such!".
I've been watching for a recommended release for 1.3.2, but since they've been slow, I've gone ahead and added the beta build.
-
View User Profile
-
Send Message
Posted Aug 28, 2012@Mayhem777
You can't change the Notch player as the primary executor. He's a guaranteed safe name to use, as he can only be online when Notch himself is (The creator of the game). The only other option was to use myself, and I didn't want to do that.
He's not going to join your server, and even if he did join, he wouldn't abuse his admin rights.
-
View User Profile
-
Send Message
Posted Aug 28, 2012How i change the "notch" player?
-
View User Profile
-
Send Message
Posted Aug 24, 2012@diannetea
try /plugman load Vote
case sensitive
-
View User Profile
-
Send Message
Posted Aug 23, 2012@siOnzee
I'll have to take a look at it once I get home. That should work fine, but maybe it's something with it being a custom command that's causing a problem.
-
View User Profile
-
Send Message
Posted Aug 23, 2012@RabidCrab
in game as an Admin working great. in MyCommand have this.
-
View User Profile
-
Send Message
Posted Aug 23, 2012@siOnzee
Hmm, that should work fine. Are you able to execute the restart from in-game as an admin? If you can't, my plugin won't be able to run it either.
-
View User Profile
-
Send Message
Posted Aug 23, 2012@RabidCrab
Thanx for fast Answerd and for tip : [%1] I have next Quesetion, iam using plugin: MyCommand for command /restart
Command set on -restart , i vote for restart, = Sucessful, and command doesnt sended. In server.log no error or other. and add For what i vote. - You voted for Yes, or You voted for No.
-
View User Profile
-
Send Message
Posted Aug 23, 2012@siOnzee
You can actually do that now. The last parameter is the vote starters name. So if you did /vote ban rabidcrab, [%0] would be "rabidcrab", and [%1] would be "siOnzee". If you did /vote sun, [%0] would be "siOnzee".
Only reason the text doesn't show the players name is because I completely forgot I added that functionality. The next release will have the updated config.yml that will default show the starting voters name.
-
View User Profile
-
Send Message
Posted Aug 23, 2012Please add message: Who stated voting. Example: siOnzee has started voting for change weather on rain.
Sorry for my bad english, iam from czech. Thanx. Good Work ! PS: And status off voting Example : 1 say Vote yes, and Broadcast say 1/0 next say vote yes, broadcast say 2/0
-
View User Profile
-
Send Message
Posted Aug 22, 2012@ok12Boss
VoteSuccessText is probably what you're looking for. It's what gets displayed after the vote ends in a successful vote. If there's no VoteSuccessText for a vote, then VoteEndSuccessText gets called, which is under the default vote.
VoteStartText Is what you see when the vote is started. If none is found, VoteStartText in the default is what is shown.
Description is what is displayed when the user types /vote list. If there is no description, nothing will be displayed.
If you're talking about the yes/no limitation, I won't be able to change that. It'd require extensive changes to the program that would give very little benefit.