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
Update to work with all versions plox. It doesn't work on 1.6.2-R1.1
@ViscousSummer88
+1
Please make this take into account worlds. If day and want night in world a, let world a be shown in the message. And take into account that when voting for day again. If vote for night in world a cant vote for night in world b.
@dawm
They don't, you just have to have at least 1 name in the ops.txt file.
Why must a OP be present for the plugin to load?
@RabidCrab
Alright thanks for the support.
@Arton123
It's possible, but I don't openly support older versions with new releases. If the 1.4.7 update was after Bukkit made that huge change to the way config files are handled, then I'm sure the new version will work. If it's before that change, then I can pretty much guarantee it won't work.
My older releases have support for all the way back to before 1.3.1. There is a download specifically for 1.4.7 as well.
Does the newest version work for 1.4.7?
Could this add support to run the vote across all words, for example /vote weather sun, makes it sunny in all words, or worlds you select to link?
@RabidCrab
Thank you for the update, seems to have resolved the issue. Enjoy the sun :)
Really good plugin, takes it time to configurate (espacially in an other language), but runs perfectly.
Keep up your great work
@PalominosVIP
The update is live, just a heads up.
@PalominosVIP
I just uploaded an update. It'll probably take a few hours to go through the approval process.
I am going to try to run this on my 1.6.1 server. Wish me luck. I'll report back if it works.
@Androkai
The vote isn't world specific in itself, so they will receive a voting notification. They'll also be counted in the voting results.
@LeTruent
I'm not sure what the problem is, except that the code that's having issues must be run successfully, and it has to do with pulling the ops list from Bukkit.
You should probably upload the error to the developers, because the error doesn't actually end in my program. It's very likely that their program crashed due to this line: "tried to access method org.bukkit.craftbukkit.CraftOfflinePlayer.<init>(Lorg/bukkit/craftbukkit/v1_5_R3/CraftServer;Ljava/lang/String;)V from class org.bukkit.craftbukkit.v1_5_R3.CraftServer"
@RabidCrab
There is one OP on my server : myself :/
@RabidCrab
Thx for information. Last question: does another player get voting-message if he is in another world if I vote for weatherchange in my world?
@Androkai
It works with multi-worlds if you expect the world the player is on will have their time/weather changed. The weather and time changing code looks like this:
if (sender instanceof Player) player.getWorld().setStorm(weather); else plugin.getServer().getWorld("world").setStorm(false);
If you need it to be able to specify other worlds, you can add it as a custom command. I don't have any plans to add default world specification in since it wouldn't be as intuitive as it is now to vote.
@LeTruent
The error is on the line getServer().getOperators(), which is a non-deprecated function call.
You absolutely must have an operator for your server, otherwise Vote will fail to work correctly. I'm sure the failure was due to a lack of operators in the ops.txt file for your server.
I test this plugin a long time ago but have big problems with multiworlds. Is per world - voting working now or not supported feature?
Nice to see you're always working on it :)