[Mostly Solved] Time and Weather Plugin

Discussion in 'Archived: Plugin Requests' started by jamcat22, Aug 3, 2012.

  1. Offline

    jamcat22

    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. :)
     
  2. Offline

    marwzoor

    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?
     
  3. Offline

    jamcat22

    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.
     
    Last edited by a moderator: May 27, 2016
  4. Offline

    marwzoor

    Well, I am thinking about something easier :p 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 ;)
     
  5. Offline

    jamcat22

    ok. could it be that you could vote no but it would just tell people that you voted no
     
  6. Offline

    marwzoor

    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 ;)
     
  7. Offline

    jamcat22

    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?
     
  8. Offline

    marwzoor

    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.
     
  9. Offline

    jamcat22

    thank you
     
  10. Offline

    marwzoor

    I have come a long way now, but I'll have to finish it later ;)
     
  11. Offline

    jamcat22

    Any progress?
     
  12. Offline

    jamcat22

    Any new progress?
     
  13. Offline

    jamcat22

    Bump :O
     
  14. Offline

    attrib

    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.
     
  15. Offline

    jamcat22

    There is no /vtime no. Also I want the weather aspect too.
     
  16. Offline

    jamcat22

  17. Offline

    jacklin213

    hey i remember a plugin like this on a old server but it was for day/night
     
  18. Offline

    jamcat22

    Hm... That might work, but it's missing a crucial part. I wish the developer that was doing this earlier, marwzoor
    would reply.
     
  19. Offline

    marwzoor

    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.
     
    Last edited by a moderator: May 27, 2016
  20. Offline

    jamcat22

    marwzoor
    Thank you for the plugin! One last thing, can you put it on BukkitDev?
     
  21. Offline

    marwzoor

    jamcat22
    Sure ;) I'll credit you in the description!
     
  22. Offline

    jamcat22

    Thank you very much! One last last thing :) are you going to update this plugin with the new versions of bukkit?
     
  23. Offline

    jamcat22

    marwzoor
    Are you going to put it on BukkitDev soon? Also are you going to update this plugin when it is needed?
     
  24. Offline

    Nuko32

    Beautiful idea!
     
  25. Offline

    jamcat22

    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."?
     
  26. Offline

    cnaude

  27. Offline

    jamcat22

    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.
     
  28. Offline

    cnaude

    Oh okay then. :)
     

Share This Page