Poll
Poll is a plugin that is very easy to use, it allows the creation of multiply polls with multiply answer options. It offers basic commands to manage the polls. It is my first plugin feel free to leave comments or feature requests.
The data is stored in a SQLite File and it uses Bukkit build in Permissions.
User Commands - Permission Node: poll.user
- /poll - to show the help of Poll
- /poll list - to show all active polls
- /poll list inactive (pagenumber) - to show all inactive polls (using it without the pagenumber will always show the first 10 inactive polls)
- /poll info <pollid> - to show all options of the poll with that id, also show if you already voted for it
- /poll vote <pollid> <optionid> - to vote
Admin Commands - Permission Node: poll.admin
- /poll toggle <pollid> - to toggle the given poll between active/inactive
- /poll create <pollquestion> - to create a poll with that question (new created poll are active by default)
- /poll addoption <pollid> <optionid> <answeroption>- to create the vote option for the given poll
- /poll result <pollid> (active) - to evaluate a poll and set it to inactive by default (when active is given the poll will not be set to inactive)
- /poll remove <pollid> to remove the given poll with all poll options and votes regarding that poll
Example - create a poll with options
We will create a test poll that ask "Does this plugin work?" and possible answers will be "Yes", "No" and "Plugin?!?". Let's start!
- /poll create Does this plugin work? Now the poll is created, but we don't have any options to vote for. Since it is the first poll we made it has the id 1, else we would use /poll list to get the poll id.
- /poll addoption 1 1 Yes Now we created the first (1) answer for the poll with the id 1 the answer "Yes". Let's add another option since one answer does not make any sense =)
- /poll addoption 1 2 No Now we have created the second (2) answer for the poll with the id 1 the answer "No". We add another one.
- /poll addoption 1 3 Plugin?!? Okay now we have all 3 answer options, the poll itself and it is set to active by default. We are done!
Example - vote for an existing poll
Okay we have the poll we made before (see Example - create a poll with options). How does someon vote for it? First we get all active polls to know which polls are currently running.
- /poll list Now we have the poll id (1), we need the possible answers of that poll.
- /poll info 1 Okay now we see that we haven't voted yet and the possible answers with their option numbers. We decide to vote for "Plugin?!?" with the option number 3.
- /poll vote 1 3 And thats it! If we now check with /poll info 1 we will see that we already voted =)
Example - check votes for a poll
If you want to check the current results for a poll (in this case the poll with the ID 1) without closing it use
- /poll result 1 active That way we get the current results for the poll with id 1 without setting it to inactive. Without using the active modifier the poll would be set to inactive by default after using result command.
It would be awesome if someone could update the great and simple plugin for the latest/current minecraft version :)
On Spigot 1.11.2 i get "Internal server error" when attempting to run any /poll command
Log:
[10:21:36 INFO]: Player issued server command: /poll create [10:21:36 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'poll' in plugin Poll v0.1 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[server.jar:git-Spigot-6de2fbc-16b5116] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[server.jar:git-Spigot-6de2fbc-16b5116] at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchCommand(CraftServer.java:650) ~[server.jar:git-Spigot-6de2fbc-16b5116] at net.minecraft.server.v1_11_R1.PlayerConnection.handleCommand(PlayerConnection.java:1344) [server.jar:git-Spigot-6de2fbc-16b5116] at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1179) [server.jar:git-Spigot-6de2fbc-16b5116] at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-6de2fbc-16b5116] at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-6de2fbc-16b5116] at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-6de2fbc-16b5116] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_72-internal] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_72-internal] at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) [server.jar:git-Spigot-6de2fbc-16b5116] at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:739) [server.jar:git-Spigot-6de2fbc-16b5116] at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [server.jar:git-Spigot-6de2fbc-16b5116] at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:675) [server.jar:git-Spigot-6de2fbc-16b5116] at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:574) [server.jar:git-Spigot-6de2fbc-16b5116] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72-internal] Caused by: java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler at me.Schm0ftie.Poll.Poll.onCommand(Poll.java:159) ~[?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[server.jar:git-Spigot-6de2fbc-16b5116] ... 15 more >pl [10:23:26 INFO]: Plugins (5): NoCheatPlus, Poll, Essentials, EssentialsChat, GroupManager
Is it possible to limit the number of times a person can vote? as of now all of my players can vote as many times as they like, which kind of defeats the purpose of my needs of a poll. I checked the plugins folder and everything for configs and found nothing :3
Do you have like an essay option? I would like people to be able to tell me where they heard about the server.
Just installed, looks good so far. It would be better if players could be notified of the polls when they login.
On my server, I have scattered end portal blocks as votes, and right now I manually have to collect those votes on a particular day of the week. But I'm using them as a way to moderate the development of the server.
Can you add a feature to make a poll require an item to cast a vote, and then take the item?
Thanks in advance.
This is one of a kind. Please update to 1.3.1 :)
@Matthiaswagg
I will add it.
Can you create children nodes for the poll.admin I would like for my players to be able to create the polls, but not toggle and all those other admin commands.
Thanks
@bladedpenguin I just put my active poll in my motd file. (Essentials) Easy!
OP: Man, great little plugin, easy straightforward, only con is that I'm almost sure even with my clear instructions in the motd, my users won't be able to figure out the command, meh, I guess I'll see the next time they come on. Current format and example: Would you like voice chat on the server? View the Poll with /poll info 1 Then cast your vote with /poll vote 1 <answerID>
<<reply 693931="">>
Do you want it to remind for every poll or just that there is at least one
that you didn't vote for?
Would it be possible make it periodically remind players that there is a Poll? Like every 10min or so...
@Flamez44
Hm reading the error log it seems to me that you used the wrong version or maybe I did upload the wrong version :/
I have removed some dependencies and resubmitted it. Until it is approved you can download it here:
Link Removed: http://www.mediafire.com/?bsvm4agfeucdh7d
If another or the same error appear again please post the entire server log on pastebin.
i did /poll and INSTANLY got an error message
http://pastebin.com/z4mFHSXr
Downloaded, lets see how it does XD
Updated to be compatible with CB 1.2.5-R1.0 Please report any bugs you find and use pastebin.com or a similar site to post console log.
Are there any plans for an update?
In fact I could add that feature. But I don't realy know if it is realy necessary since if multiple polls are running, do they need to vote for each? Only for one of them? A specific one or random? This poll plugin isn't linked to a rating site or something like that.
Hmm, would it be possible to add something that forces a player to vote before they are allowed to continue playing? maybe on login? That would be great.
Nice plugin already using it on our server!