First of all, I know that there are many plugins that do this but this is a version I would like. Plugin category: Administration or MISC Suggested name: Time Vote What I want: A time and weather voting plugin (like TimeAndWeatherControl) Ideas for commands: "/tvote yes" Votes yes on a time vote. "/tvote no" Votes no on a time vote. "/tvote day" Votes for day. "/tvote night" Votes for night. "/wvote sun" Votes for sun. (Optional: don't add if it will take too long.) "/wvote rain" Votes for rain. (Optional) "/wvote yes" Votes for yes on a weather vote. (Optional) "/wvote no" Votes for no on a weather vote. (Optional) Ideas for permissions: None When I'd like it by: Whenever possible. Other information: I would like the "/tvote no" commands because it would speed up my voting a lot because everyone on my server wants one so that they can end the vote early. Yes it might be unreal. In that case, please just do the tvote and not the wvote. If you need to leave something out, just tell me. Start out simple.
This seems like easy to do I'm also guessing that you want it to be more then 50% votes to execute the time/weather feature?
I would like it to be 51% (or something close to that) to execute that feature. Btw, the whole point of the /tvote no is so that the vote can finish faster. So basically, I want there to be a time to vote, (2 minutes or something) and when that time runs out, if the vote is over 50%, the vote would be executed, however, if someone voted no and the vote was still above 50%, it would execute. That means that voting no would speed up the vote EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Well, I am thinking about something easier if there are 10 players online, then there would have to be 6 players to vote yes. And if 6 players have voted yes, then it would execute. So you don't really need the 2 minutes
Yes of course, it collects votes from all online players, and if it has collected votes (both yes and no) from example 10 players, it would execute if the majority has voted yes. What I am thinking about might messing up is if a player logs in / logs out under the vote. I could make a onPlayerLoginEvent and onPlayerQuitEvent
That sounds like a good idea, but I have a question. If the majority votes no, does it end the vote early, or does the vote hang. Also, can it be made so that if after one minute and no one votes, it will terminate the vote instead of letting it hang?
It ends the vote if the majority votes no. I don't really know how to deal with the bukkit scheduler, but I'll read the api now.
I think this sounds like motd /vtime [dawn / day / evening / night] then vote with /vtime yes or no and after 60s the vote is canceled.
Hm... That might work, but it's missing a crucial part. I wish the developer that was doing this earlier, marwzoor would reply.
jamcat22 Sorry for not replying, but I am working on the plugin right now. I haven't had much freetime the last couple of weeks. But the plugin will probably be done in a couple of hours. jamcat22 So, I am finally done with the plugin. >>Here is a download link<< I hope you enjoy it! And PM me if there are any issues! EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Thank you very much! One last last thing are you going to update this plugin with the new versions of bukkit?
marwzoor Are you going to put it on BukkitDev soon? Also are you going to update this plugin when it is needed?
Nuko32 Lol marwzoor One last thing, can you make it so it will also say something like "Use "/wvote yes" to vote yes or "/wvote no" to vote no."?
This sounds exactly like TimeAndWeatherControl. I maintain a version of it for my server. http://dev.bukkit.org/server-mods/timeandweathercontrol/ http://dl.dropbox.com/u/30679730/TimeAndWeatherControl.jar
I have used TimeAndWeatherControl before, but like I said, the /tvote and /wvote no is needed. Just so you know, marwzoor has finished a version and the only reason this keeps going to the top-ish on the plugin request list is because I have been trying to communicate with him.