Inactive [MECH] Lightvote v1.73 - vote for day/night using commands, beds or items [1.1R5, 1.2.4]

Discussion in 'Inactive/Unsupported Plugins' started by Zarius, May 10, 2011.

  1. Offline

    Zarius

    Lightvote - any player can vote for day/night (based on xupwup's original Lightvote)
    Version: v1.73 (2012/03/02)

    Features:
    • Voting for both day and night
    • Sleeping in a bed starts/agrees to vote for day (optional)
    • Itemvote - vote for day/night by hitting a bed with a torch (configurable)
    • Itemvote - vote no by hitting dirt with a torch (configurable)
    • Permanent day or night (optional)
    • Reminders of vote in progress
    • Voting is disabled for a while after a vote
    • Inbuilt permission system - restrict voting to a subset of players
    • Basic multiworld support (still only world 0 for permanent time)
    Download: Download | Source (GitHub) | Bug/Feature Tracker

    Usage:
    /lvt day -- start/agree with vote for day (or vote no for a night vote)
    /lvt night -- start/agree with a vote for night (or vote no for a day vote)
    /lvt yes -- vote yes
    /lvt no -- vote no

    Configuration (open)

    The default config file looks like this:
    Code:
    # At least 'required-yes-percentage'*peopleOnServer people must vote yes, and there must be more people that voted yes than no
    # day
    required-yes-percentage-day 5
    minimum-agree-percentage-day 50
    # night
    required-yes-percentage-night 5
    minimum-agree-percentage-night 50
    vote-fail-delay 30
    vote-pass-delay 50
    vote-time 30
    reminders 2
    # enable bedvote (sleeping in a bed starts or agrees with a vote)
    bedvote yes
    # no commands - if this is enabled then all lightvote voting commands are disabled (bedvote or itemvote must be used)
    lightvote-nocommands no
    ##### Configure items for commandless voting (hitting 'itemhits' with 'iteminhand' starts/agrees/disagrees with a vote)
    # These are for starting a vote or agreeing to a vote in progress (day and night can be different if you want)
    itemVote yes
    bedvote-iteminhand-day TORCH
    bedvote-itemhits-day BED_BLOCK
    bedvote-iteminhand-night TORCH
    bedvote-itemhits-night BED_BLOCK
    # These are for disagreeing (voting no) with a vote in progress)
    bedvote-novote-iteminhand-day TORCH
    bedvote-novote-itemhits-day DIRT
    bedvote-novote-iteminhand-night TORCH
    bedvote-novote-itemhits-night DIRT
    debug-messages no
    permanent no
    use-permissions no
    The permissions file (plugins/LightVote/voteStarters.conf) consists of the names of players you wish to allow, separated by ONE space or newline. This is case insensitive. If I, for example, only want to allow myself and testuser1-3 to start votes, I could use the following config file.

    Code:
    xUpWuP testuser1 testuser2 testuser3
    If you just want everyone to be able to vote, as is the default, just use:

    Code:
    *
    Alternatively you can set "use-permissions" to yes and add the "lvt.vote.time" permission to users you want to be able to vote.

    The configuration files are in plugins/LightVote/LightVote.conf


    Changelog:

    Version 1.73 (2012/03/02)
    * updated for BukkitR5 new event system

    Version 1.72 (2011/07/27)
    * added start/join permissions (lvt.vote.time.join & lvt.vote.time.start) - start permission automatically grants join permission

    Version 1.71
    * removed debug message
    * default config includes use-permissions option now

    Older changes (open)
    Version 1.70
    * Added permissions support (enable in config and use "lvt.vote.time")
    * Added /lvt day & /lvt night commands to start or agree with a vote (or disagree as appropriate)
    * Fixed a bug with bedVote where it wouldn't work until you used a /lvt vote

    Version 1.68
    * Added option to disable itemVote.
    * Fixed bug where players could change day vote to night vote.

    Version 1.67
    * Vote message should be sent only to applicable world
    * Fixed vote start message to advise /lvt help when using lightvote-nocommands
    * Fixed count error in yes/no vote count

    Version 1.66

    * Added itemVote (hit item X with item Y in hand to vote yes/no for day/night)
    * Added lightvote-nocommands (disables /lvt start and /lvt yes/no to use only itemVote or bedVote)

    Version 1.65
    • Multiworld votes now only consider the players within the current world.
    Version 1.64
    • New feature: basic multiworld support - still only 1 vote at a time and only world 0 for permanent time.
    Version 1.63
    • New feature: bedvote. Sleeping in a bed at night starts or agrees to a vote for day. This can be turned off in the config file.
    Previous changes - see previous thread


    Todo:
    • Support for Permissions plugin. (done in 1.7)
    • Support for Bukkit SuperPerms
    • (Optional) Skip night cooldown - eg. every 5 (configurable) nights that are skipped the vote day command wont work until a full night has passed.
    • Vote /lvt day and /lvt night commands (I sometimes try these commands myself :)) (done in 1.7)
    • Bedvote: only start a vote when the player is asleep, rather than immediately upon entering the bed (if possible).
    • Weather? Both commands and gameplay (perhaps totems built to vote for rain, thunder, sun).
    • Allow simultaneous votes in different worlds (currently only one global vote at a time).
    • Voting in one world disables all voting for one minute (same issue as above) - fix this.
    • Customizable messages (thanks Hawtin)
    • Ignore NPC's
     
    Stassi, Hawtin, Linki and 1 other person like this.
  2. Offline

    Bronski

    I posted in his thread. I got a strange error when I did a vote in another world. He said he was going to look into it. I may not have gone beyond that with my testing since I was literally trying like 4-5 plugins in rapid succession to see which one I liked. I'll keep it on my short list to put back in if TWC annoys me. Thanks :D
     
  3. Offline

    Zarius

    Yeah, noticed your post there. I understand the frustration - I run my server with >80 plugins :D

    The main thing I like about Vote is firstly that it works without the glitches LightVote gets (although they could be fixed) and also mainly that you can configure a vote for any command you want :D Although that last feature is no good if you have issues like you had. Hopefully when I'm finished OtherBlocks (currently under a huge revamp) I can look more into it.
     
  4. Offline

    Bronski

    Ok you got me beat :p

    Feel free to tag me if you come back to working on any of these voters. I'm always interested in options since plugins come and go so much.
     
  5. Offline

    xFli3r

    Hey i could just be blind but could you give me the full list of permissions and what each do?
    like i want everyone to be able to do /lvt yes or /lvt no so everyone will be able to vote while only a few groups can actually do /lvt start and /lvt start night

    Thanks!
     
  6. Offline

    Zathras

    If you do merge into Vote, see if you can maintain the same syntax format and create some CommandHelper aliases to support the 'lvt' commands that users are accustomed to.
     
  7. Offline

    Zarius

    Oops - forgot about them - will try to add a list later tonight.

    Cool - thanks for the feedback - what lvt commands do you mostly use? Time (day/night) voting is already built into Vote. I don't know how many use the "permanent time" voting (there are plugins that deal with permanent time that could be hooked into Vote via commands) - the main feature missing from Vote would be bedvote/itemvote I think.
     
  8. Offline

    Roshannnn

    Sweet im gonna try this plugin, Thnx! :D

    I LOVE THIS PLUGIN! I use it when im offline, so players can make it day :ddd

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  9. Offline

    Zathras

    I would like to be able to do this, too.
     
  10. Offline

    jakattak033

    Well working, easy to use.

    Thanks!
     
  11. Offline

    Bjourk

    Working on 1060?
     
  12. Offline

    xupwup

    Most likely. Just try it.
     
  13. Offline

    Curthiany

    um for some reason the permissions dont work my users cannot vote /lvt yes or no any ideas ?
     
  14. Offline

    C0nsole

    @Zarius
    Excuse me, Where are the nodes?
     
  15. Offline

    Niemand

    btw: Plugin dead? or Working with CB#1597+ ?
    Will test that today...
     
  16. Offline

    C0nsole

    Niemand likes this.
  17. Offline

    shroomduck

    Can confirm works on CB1.1-R3
     
  18. Offline

    Zarius

    Thanks - nice to know it still works. I've updated the thread title appropriately.
     
  19. Offline

    Nick Foster

    bukkitdev and craftbukkituptodate please?
     
  20. Offline

    Westoak

    This is a great plugin!! My server really enjoys it!!

    I would really like an update to 1.2 though so I can keep using it!! :)
     
  21. Offline

    Zarius

    1.2 update in progress :)
     
    Westoak likes this.
  22. Offline

    baem

  23. Offline

    Zarius

    New update - see top post (haven't got much time so just updated to newest Bukkit releases - no other bug fixes or features).
     
  24. Offline

    Westoak

    Thanks for the quick update!! My server really appreciates it!! :)
     
  25. Offline

    Zarius

    Test version (1.81zt) with translation and /vote sun (when raining) - <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 14, 2016
  26. Offline

    KevinEssence

    1.4 Compatible?
     
  27. Offline

    Zarius

    You mean 1.2.4? Should be - let me know if there are any problems.
     
  28. Offline

    KevinEssence

    Awesome Thank you
     
  29. Offline

    Zathras

    I have "lvt.vote.time.start" in a world specific permission, but players can still start votes anywhere. Using 1.73 with CB 2126. It seems to be worse off that it was in 1.72, for multiword support.
     
  30. Offline

    hellguy

    Hey, very nice work :cool:
    I just wanted to ask wether I could use the code in an own plugin, or not.
    I want to make (yet another?) plugin with voting for time and weather.
    It's kind of a 'private' project though. It's mainly thought for only one server, but I don't know if I publish it further on.
    Otherwise I would have to rewrite the time part.
    Thanks in advance ;)

    Edit: And of course I'll give you both credit. :)
     
  31. Offline

    Siderz

    Niemand likes this.

Share This Page