[INACTIVE][ADMIN/FUN] ObuVoting v0.3 - Custom voting (Permissions) [860]

Discussion in 'Inactive/Unsupported Plugins' started by OBudista, May 7, 2011.

  1. Offline

    OBudista

    ObuVoting
    Version: v0.3
    Download

    Tested for:
    • Bukkit: 860
    • Permissions: v2.7.2
    Older versions:

    v0.2 | v0.1

    ObuVoting allows OPs or anyone with permissions to ask custom questions to all online players while specifying the possible answers and the time limit. This plugin provides an easy and effective way to get opinions from your server's community and can end up being pretty fun.

    Note about permissions:
    If you use Permissions, this plugin will automatically ignore OP privileges and focus on the 3 permissions for create, cancel and vote. (details bellow) If you do NOT use Permissions, the plugin will allow everyone to vote and restrict create/cancel to OPs.

    Note about configurations:
    The configuration file will be created automatically, along with the state file in the /plugins/ObuVoting folder.

    Instalation:
    • Place obuVoting.jar in your plugins/ directory.
    • (Optional) Use Permissions v2.7.2 (Link here)
    Commands:
    • /obvote create <question|answer1|answer2|...|answerX|timelimit>
      • unlimited number of answers (minimum 2) and time limit in seconds.
    • /obvote cancel
    • /obvote <answer>
    • /obvote active
      • Shows the status of the current voting (if any is active)
    • /obvote last [​IMG]
      • Shows the status of the last finished voting
    Examples:
    • /obvote create Is this a cool plugin or what?|it is!|nope|I'll decide later|60
    • /obvote 1
    Permissions:
    • Create votings: 'obuvoting.create'
    • Cancel votings: 'obuvoting.cancel'
    • Vote: 'obuvoting.vote'
    Configurations:
    • enable-create: Enables the /obvote create command.
      • Default: true
    • enable-cancel: Enables the /obvote cancel command.
      • Default: true
    • enable-vote: Enables voting.
      • Default: true
    • enable-active: Enable the /obvote active command.
      • Default: true
    • enable-last: Enable the /obvote last command.
      • Default: true
    • enable-example: Enable the /obvote example command.
      • Default: true
    • show-votes-in-active: Enabling this will disclose the current voting result.
      • Default: false
    • enable-voting-by-chat: Enables players to vote by writing the option number in chat.
      • Default: false
    • extra-timelimit-after-crash: Time (in seconds) given to the countdown in case the voting expired during down time.
      • Default: 60
    • enable-reminder: Enables the periodic reminders that sends users who didn't vote yet a message telling them that a voting is active.
      • Default: false
    • reminder-period: Time (in seconds) between periodic reminders.
      • Default: 120
    Known bugs:
    • None
    Todo:
    • Waiting for user feedback.
    Changelog:

    Version 0.3:
    • New command (/obvote last) allowing users to check the status of the last finished voting.
    • Introduced a configuration file (created automatically when first running the plugin)
    • Plugin interface redesigned so it is now Console friendly.
    • Plugin now has optional reminder functionality.
    • Voting is now persistent even amid server crashes or maintenance.
    Version 0.2:
    • Integration with Permissions.
    • Result sorting by number of votes.
    • Warning users that join about the voting.
    • New command (/obvote active) allowing users to check the status (excluding the vote count) of a voting.
    Version 0.1:
    • First release
    Some screenshots:

    Show Spoiler
    [​IMG]
    Show Spoiler
    [​IMG]
    Show Spoiler
    [​IMG]
    Show Spoiler
    [​IMG]
     
    thecoolwolf and ne0nx3r0 like this.
  2. Offline

    Enzy

    Good plugin but in description under commands you put /obuvote but in the tutorial you put /obvote
     
    OBudista likes this.
  3. Offline

    OBudista

    Nice catch. Fixed already.
     
  4. Offline

    Plague

    just a suggestion, move those screenshots to a SPOILER tag
     
    OBudista likes this.
  5. Offline

    Blazednlovinit

    How about giving the functionality to add commands in to the result? like setting up day votes, weather votes, ban/kick/jail votes? and having a way for these to be reaccessed by players?
     
    OBudista likes this.
  6. Offline

    godgodgodgo

    Hey you should do the command like /obvote [time] [answer1] [answer2].
    This way you could have more than two answers
     
  7. Offline

    OBudista

    You already can. The plugin has an unlimited number of questions.

    As an example you could so: /obvote This is a multiple option question|option 1|option 2|option 3|option 4|60

    I actually tried for a way to do that. Unfortunately for this to work you would need an OP online at the time of the voting since the commands need to be ran by someone with enough permission to execute them.

    I even tried using console commands to avoid this requirement but plugins like Essentials block certain commands from being executed as console.
     
  8. Offline

    leon7070

    Nice Plugin, but pls add permissions.
     
    OBudista likes this.
  9. Offline

    drndos

    Voting with just typing 1 instead of /obvote 1 will be much better
     
    OBudista likes this.
  10. Offline

    OBudista

    ObuVoting
    Version: v0.1
    Download


    Tested for:
    • Bukkit: 740
    ObuVoting allows OPs to ask custom questions to all online players while specifying the possible answers and the time limit. This plugin provides an easy and effective way to get opinions from your server's community and can end up being pretty fun.


    Instalation:
    • Place obuVoting.jar in your plugins/ directory.
    Commands:


    • /obvote create question|answer1|answer2|timelimit
      • unlimited number of answers (minimum 2) and time limit in seconds.
      • only available to OPs
    • /obvote cancel
      • only available to OPs
    • /obvote answer
    Examples:


    • /obvote create Is this a cool plugin or what?|it is!|nope|I'll decide later|60
    • /obvote 1
    Known bugs:


    • None
    Todo:


    • Waiting for user feedback.
    Changelog:



    Version 0.1:
    • First release
    Some screenshots:

    Show Spoiler

    [​IMG]
    Show Spoiler

    [​IMG]
    Show Spoiler

    [​IMG]


    As a note, I'm leaving the v0.1 file and description above as a reference and editing the original post to v0.2

    This new version now has optional use of the permission plugin. Warns joining users about the current vote and allows anyone to check which voting (if any) is active right now.

    Results are now sorted by number of votes.

    More details in the original post.

    I taken your feedback seriously. I'm willing to create a configuration that enables/disables this feature if more people request it as well.

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

    Blazednlovinit

    hmmm, i think command signs can allow people to execute commands they otherwise would not be able to, but i dont know how thats done in the code.
     
    OBudista likes this.
  12. Offline

    sangrifeld

    Hello!

    Can you add an optional reminder for those who didn't vote, please, for long duration surveys? (~24 hours for exemple)
    And why not add a command to show result too, at any moment?

    Thanx. :)
     
    OBudista likes this.
  13. Offline

    OBudista

    For long duration surveys I should persist the voting even after server restarts, which I don't right now. I'll work on that along with the tests for bukkit 766.

    So here is what I'm going to do:
    • Make voting persistent even with restarts
    • Create reminders (enable and period configurable in a yml file)
    • Create a configuration that allows "/obvote active" to show/hide current voting results.
    • Create a command "/obvote last" to show the last voting results.
    • Create a txt file (automatically) that stores the votings and their results.
    • Create a yml configuration file that allows to turn on/off all commands and features.
    • Keep things simple. Even with all these added stuff, the plugin will still be "plug and play".

    Well if you can manage to find one plugin that uses other plugins to run commands like ban/burn/etc, I'll check it out.

    As far as I know the only way to create something like a ban hook on a voting is for me to actually write the code for ban.

    I would create votekick/voteban (temporary) votings if people asked for it. Other than that only if other plugins gave us an interface to bypass permission/OP checking. Or bukkit creating a "sudo" for us to use.

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

    sangrifeld

    i tried to launch a survey directly from console with this command:

    "obvote create les mobs qui courent à la même vitesse que les joueurs, bien ou pas bien?|Bien!|Pas bien!|osef|300"

    (Sorry, not english, but now you can see :p)

    server's Answer:
     
    OBudista likes this.
  15. Offline

    OBudista

    ObuVoting
    Version: v0.2
    Download

    Tested for:
    • Bukkit: 740
    • Permissions: v2.7.2
    Older versions:
    v0.1

    ObuVoting allows OPs or anyone with permissions to ask custom questions to all online players while specifying the possible answers and the time limit. This plugin provides an easy and effective way to get opinions from your server's community and can end up being pretty fun.

    Note about permissions:
    If you use Permissions, this plugin will automatically ignore OP privileges and focus on the 3 permissions for create, cancel and vote. (details bellow) If you do NOT use Permissions, the plugin will allow everyone to vote and restrict create/cancel to OPs.

    Instalation:
    • Place obuVoting.jar in your plugins/ directory.
    • (Optional) Use Permissions v2.7.2 (Link here)
    Commands:
    • /obvote create <question|answer1|answer2|...|answerX|timelimit>
      • unlimited number of answers (minimum 2) and time limit in seconds.
    • /obvote cancel
    • /obvote <answer>
    • /obvote active [​IMG]
      • Shows the status of the current voting (if any is active)
    Examples:
    • /obvote create Is this a cool plugin or what?|it is!|nope|I'll decide later|60
    • /obvote 1
    Permissions:
    • Create votings: 'obuvoting.create'
    • Cancel votings: 'obuvoting.cancel'
    • Vote: 'obuvoting.vote'
    Known bugs:
    • None
    Todo:
    • Waiting for user feedback.
    Changelog:

    Version 0.2:
    • Integration with Permissions.
    • Result sorting by number of votes.
    • Warning users that join about the voting.
    • New command (/obvote active) allowing users to check the status (excluding the vote count) of a voting.
    Version 0.1:
    • First release
    Some screenshots:

    Show Spoiler
    [​IMG]
    Show Spoiler
    [​IMG]
    Show Spoiler
    [​IMG]


    Okay so I fixed all issues and decided not to create the file with the voting history. I'll hold that until someone actually requests it.

    v0.3 is out. Have fun voting.

    I hadn't anticipated someone using it in the console, I've made some changes and according with tests, everything is working fine now.

    Hope you enjoy it.

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

    Kloporte

    It would be awesome if timelimit could be optionnal ?
     
    OBudista likes this.
  17. Offline

    KoryuObihiro

    Feature idea: Perhaps add a command at the end which is executed as the person who started the vote, or perhaps specify a player to execute from in the case of /spawnmob or something.
     
    OBudista likes this.
  18. Offline

    OBudista

    I'll have those suggestions into consideration. If anyone else thinks they are useful please let me know.
     
  19. Offline

    GarethNZ

    Hey Obudista,

    I already have a framework to help implement such a feature..

    http://forums.bukkit.org/threads/dev-gen-menumetamod-v0-5-1-client-menu-framework-733.9214/

    Which allows users to just say a number from 1-0.

    I also have a client side mod that means the user just needs to push the numbered button :)

    Let me know if you need any help.
     
  20. Offline

    Stabhappy

    You've got another user once the vote for daytime goes into effect. We need custom votes but we also need that, and we'd rather not have two vote plugins. Thanks for the work so far!
     
  21. Offline

    OBudista

    Retested it for the latest bukkit: 803. Everything working as it should.

    Also, I decided not to extend this plugin functionalities for votes other than custom votes that don't execute commands at the end. As it is right now the vote would need either specific code (which can be achieved by other plugins) or the presence of an admin (not sure if possible but likely). In this last case scenario the admin can simply execute the command himself/herself.
     
  22. Offline

    Tfs Halo

    working for 818? i'm going to try and test.
     
  23. Offline

    OBudista

    Recompiled and retested for the new version of bukkit. Everything is working as it should.
     
  24. Offline

    tarix

    Hello, I have a small problem, when I do: /obvote create Voulez vous le jour ?:Oui:Non:60 it said to myself : You need a question, two answers and the time in seconds...


    How?
     
  25. Offline

    OBudista

    Because the separator is | (vertical line) and not :

    I also tested this with the latest bukkit and it's working, so I'm updating the description.
     
  26. Offline

    Juze

Share This Page