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 Mar 29, 2013I tried some commands like "vote setvalue tp [%0] [%1]" , "vote setvalue give [%0] wool" , "vote setvalue reload" , but nothing changed.
Regardless of "IsConsoleCommand" is true or false.
My craftbukkit's version is 1.5.1 and this plugin also.
-
View User Profile
-
Send Message
Posted Mar 29, 2013Hey, I have a question. Can you make that people can vote like this, there are 2 statues of players and they are "fighting". Players what on statues look at items they have and must to answer a question: Who will win? And must to vote. A statue which will have the most votes will win. Can you do this?
-
View User Profile
-
Send Message
Posted Mar 27, 2013Sick plugin!
-
View User Profile
-
Send Message
Posted Mar 27, 20131.5.1_01 no longer op's notch, but you must have an op for the plugin to work, otherwise it will shut down.
If you think this is the case, check the information log on your server for the issue. I won't be answering any questions regarding this as it's part of the configuration steps in the information above.
-
View User Profile
-
Send Message
Posted Mar 27, 2013I added some information to make customizing votes easier to figure out.
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.
I'll be updating the video soon so that it's more clear on how to change things. I just need to figure out a quicker way of explaining everything before making the video.
-
View User Profile
-
Send Message
Posted Mar 27, 2013@UnitedFactions
It should work fine. If it fails to execute, try setting IsConsoleCommand to false.
Most plugins will work with mine, but there's some that will not. Essentials has a nasty habit of being uncooperative with any plugins that want to work with it, and it generally requires that IsConsoleCommand is set to false.
-
View User Profile
-
Send Message
Posted Mar 20, 2013Hello I am using essentials, and when i jail someone I type, /jail playername jail1 10d
for example, would this work with the following setup?
/vote jail playername 10d?
jail:
Description: 'jail a player'
ArgumentCount: 2
InsufficientArgumentsError: '&CIncorrect arguments! You need to do /Vote jail PlayerName where PlayerName is the players name'
VoteStartText: '&A[%1] has started a vote to jail &C[%0]&A! Type &6/vote yes &Aor &6/vote no &Ato vote'
TimeoutSeconds: 60
VoteOnCooldownText: '&CA player has been jailed too recently!'
VoteSuccessText: '&AVote succeeded! &C[%0] &Ahas been jailed'
VoteSuccessCommandDelaySeconds: 3
VoteSuccessCommands:
- FINDPLAYER[%0]
- VERIFYPLAYERONLINE [%0]
- vote setvalue jail [%0]
CooldownMinutesToSuccessRevote: 15
VoteFailText: '&AVote to jail &C[%0] &Afailed!'
VoteFailCommandDelaySeconds: 0
VoteFailCommands: []
CooldownMinutesToFailRevote: 30
MinimumVotes: 25
PercentToSucceed: 75
IgnoreUnvotedPlayers: true
IsConsoleCommand: true
LastSuccessfulVote: 0
LastFailedVote: 0
-
View User Profile
-
Send Message
Posted Mar 13, 2013@RabidCrab
But now you should have a PM.
I did send you the changed/added classes per link.
You could take a look at it and take what you need/want.
-
View User Profile
-
Send Message
Posted Mar 13, 2013@nacramell
Sorry, I don't think I got your PM.
I'll update the version of github to the latest and merge your changes if you'd like. I don't imagine it's a huge change you had to make.
-
View User Profile
-
Send Message
Posted Mar 13, 2013How do you vote. what is the current way. :p DERP
-
View User Profile
-
Send Message
Posted Mar 13, 2013Hey,
I did write you a PM,
I wanted to ask if I'm allowed to post a changed version which uses my
AdvancedAFK api to allow player to autovote when they go afk.
Thanks
-
View User Profile
-
Send Message
Posted Feb 24, 2013Works awesomely thanks! Now other people can have a say in what happens and I don't feel like an asshole when kicking somebody who everybody else wants to kick! Keep up the good work! :)
-
View User Profile
-
Send Message
Posted Feb 21, 2013You should really make a text page (not video) that shows all possible special commands this plugin can offer on votes.
And you should use ChatColor.translateAlternateColorCodes() instead of your custom replacer because the colors don't match with everyone else's and gets confusing.
@RabidCrab And why do you need to execute commands on players if they can't execute them ? Just execute them on server console like you did with "op notch".
-
View User Profile
-
Send Message
Posted Feb 14, 2013@BOOMBOOMMINECRAFTROCKS
Sorry about the delay. It's likely that you have a tab in there somewhere instead of spaces.
YML is a terrible format, extremely picky, and ghetto in every way possible. If you have even one piece of the syntax incorrect, such as opening the yml file as a rich text format file and then saving it, it'll break on you.
Open it as a notepad, do a search and replace on tabs, and then save it and see if it works. The error that's coming across is simply a syntax problem with your config file. I didn't see anything obvious like a misspelled parameter or missing one, so it's likely a whitespace problem.
-
View User Profile
-
Send Message
Posted Feb 9, 2013here is my config file
http://pastebin.com/Ldb47Kgn
Hope this gives you more info
-
View User Profile
-
Send Message
Posted Feb 9, 2013I am having a problem. I made my custom vote and was working perfectly. But all of a sudden it won't work. When ever i do /vote reload. it gives me this error
http://pastebin.com/2kyvNxrR
Please help me
-
View User Profile
-
Send Message
Posted Jan 31, 2013@jeracom
I explain it somewhere in the older comments in more detail, but basically there's 2 ways that my plugin cheats other plugins into executing a command that a player cannot execute themselves.
The first is by overriding the .hasPermission functions to always return true when the command is passed to the other plugins. This is the preferred and most secure method, but doesn't always work because there's a lot of poorly coded plugins out there.
The second method is by adding the creator of Minecrafts account (notch) and tricking the other plugins into thinking that notch ran the command instead of the player who started the vote.
Each method is 100% secure as it only is used when the vote passes/fails, and only for the commands that the vote pass/fail does. Any other method I've thought about implementing is a less than completely secure option, which is out of the question.
-
View User Profile
-
Send Message
Posted Jan 31, 2013Servers starts, and take "notch" to ops.txt :-(
-
View User Profile
-
Send Message
Posted Jan 25, 2013@diannetea
V1.4.7_01 will have an option called DELAY. Putting a command - DELAY 5 will delay for 5 seconds. - DELAY 60 for a minute, etc.
-
View User Profile
-
Send Message
Posted Jan 24, 2013Is there any way you could add timed commands? I would like to, for example, mute a player for a minute, but I don't think I have any way to do so