Voting (DAY/NIGHT/SUN/RAIN/STORM/CUSTOM) 2.5.0

Changing weather/time using votes of online players

  1. SobkySK
    Tested Minecraft Versions:
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    Languages Supported:
    English, Slovak, Czech, Spanish
    VOT.png

    New version is here, enjoy :)
    Voting is primary plugin made for survival servers. With this plugin, players can start Voting for weather or time, but others online players should participate in this voting to decide about a result. Voting takes normally 60 seconds. Others players can agree with this /voting yes or disagree /voting no. After ends of Voting, plugin evaluate result!


    [​IMG]

    VOT-Features.png
    • Language files
    • Boss bar - Displays info from the current cycle
    • Disabled worlds
    • Aliases for Enabled worlds
    • Customizable durations of cycle
    • Signs - Fully customizable, with a timer when Voting is started
    • "Clickable text" in chat. Using JSON(TellRaw)
    • Minimum count of players for start of voting
    • Pause between two votings.
    • Commands after cycle
    • Economy support (Vault or PlayerPoints)
    • NEW GUI - Simple and useful GUI with dynamic items.
    • NEW Custom Question - Configurable questions, with own command results! (E.g. Suitable for Event)
    • NEW ActionBar - Displays current result of voting in percent
    VOT-Cmds.png
    You can use /voting or /vot
    /voting - Open GUI with information
    /voting <CLASS> - Starts voting for this CLASS
    NEW /voting CUSTOM <CustomName> - Starts Custom voting cycle
    /voting Yes - Player agree with started voting
    /voting No - Player disagree with started voting
    /voting reload - Reload config, messages
    /voting addWorld <worldName> <Alias> - Allow to start voting in this world and set it alias E.G. /vot addWorld SurvivalWorld Survival
    /voting disableWorld <worldName> - Disable to start voting in this world

    CLASS-es: DAY/NIGHT/SUN/RAIN/STORM

    VOT-Perms.png
    Voting.State.DAY - Allows to start voting for Day
    Voting.State.NIGHT - Allow to start voting for Night
    Voting.State.SUN - Allows to start voting for Sun
    Voting.State.RAIN - Allows to start voting for Rain
    Voting.State.STORM - Allows to start voting for Storm
    Voting.State.CUSTOM - Allows to start voting for Custom
    Voting.State.* - Inherits all permissions above except CUSTOM

    Voting.Vote.Yes - Allows to participate in voting with YES vote
    Voting.Vote.No - Allows to participate in voting with No vote
    Voting.Vote.* - Inherits all two permissions above

    Voting.GUI - Allows to open Voting GUI

    Voting.Sign.Create - Allows to create voting sign
    Voting.Sign.Break - Allows to break voting sign
    Voting.Sign.Interact - Allows to interact with voting sign

    Voting.Admin - Allows to perform advanced commands

    Voting.Result - Allows to see final result of voting

    All permissions are default OP. My advice is to set Voting.State.*, Voting.Vote.*, Voting.GUI and Voting.Sign.Interact for the default group(player)


    VOT-Config.png
    Code (Text):

    #Available languages: EN, SK, CZ If you want other, you can create it and insert file to language folder. And here write name of file (Without .yml)
    language: "EN"

    #List of worlds, where is voting not allowed. (You cannot start voting for this world)
    disabledWorlds:
    - "world_nether"
    - "world_the_end"

    #Duration of cycle for voting (In seconds)
    countDown: 60

    #Minimum players for start voting
    playersToStart: 2

    #Settings of bossBar
    #Available colors: BLUE, GREEN, PINK, PURPLE, RED, WHITE, YELLOW
    #Available styles: SEGMENTED_10, SEGMENTED_12, SEGMENTED_20, SEGMENTED_6, SOLID
    bossBar:
        color: "YELLOW"
        style: "SEGMENTED_20"
    #In ActionBar is displayed progress of current voting. (In %)
    actionBar:
        resultChar: "\u25CF"

    #Intervals, when will be displayed BossBar and ActionBar
    #Usage: "XX:YY" XX-> Time, when bossBar starts displaying YY-> Time, when BossBar ends displaying
    warnIntervals:
    - "60:55"
    - "45:40"
    - "30:25"
    - "10:1"

    #Duration of pause between voting cycles (In seconds)
    pauseAfterVoting: 10

    #Each cycle and vote can be paid. Here you can configure it!
    economy:
        enable: false
    #Supported types of economy: VAULT, POINTS(PlayerPoints)
        type: "VAULT"
        price:
            start: 25.0
            vote: 5.0

    #If true, player can participate only when he is in the same world as world chosen in voting cycle
    requireTheSameWorlds: false

    #Items, which will be displayed in GUI after command /voting
    #It is highly recommended to do not change lines and slots!
    #Only on own risk!
    GUI:
        lines: 6
        CommonItems:
            NULL_SLOT:
                material: "STAINED_GLASS_PANE"
                materialData: 15
            INFO:
                material: "BOOK"
                materialData: 0
                slot: 49
        Buttons:
            AGREE:
                material: "STAINED_CLAY"
                materialData: 13
                slot: 47
            DISAGREE:
                material: "STAINED_CLAY"
                materialData: 14
                slot: 51
        States:
            DAY:
                material: "WATCH"
                materialData: 0
                slot: 18
            NIGHT:
                material: "CONCRETE"
                materialData: 15
                slot: 20
            SUN:
                material: "DOUBLE_PLANT"
                materialData: 0
                slot: 22
            RAIN:
                material: "SPONGE"
                materialData: 1
                slot: 24
            STORM:
                material: "FLINT_AND_STEEL"
                materialData: 0
                slot: 26
            CUSTOM:
                material: "NETHER_STAR"
                materialData: 0
        Core:
            Custom:
                Running:
                    material: "REDSTONE"
                    materialData: 0
                    slot: 4
            Waiting:
                material: "SULPHUR"
                materialData: 0
                slot: 4
            Running:
                material: "REDSTONE"
                materialData: 0
                slot: 4
            Ending:
                material: "GLOWSTONE_DUST"
                materialData: 0
                slot: 4

    #Commands, which will be performed after end of voting cycle
    #To disable commands use: 'commands: []'
    resultCommands:
        #These commands performs for all players after end of voting cycle
        GLOBAL:
            commands: []
        #These commands performs for all players after SUCCESSFUL voting cycle
        SUCCESS_FOR_ALL:
            commands: []
        #These commands performs for players, who voted YES in voting cycle
        SUCCESS_FOR_YES_VOTERS:
            commands:
            - "tell {player} You voted YES in previous voting cycle!"
        #These commands performs for all players after FAILED voting cycle
        FAIL_FOR_ALL:
            commands: []
        #These commands performs for players, who voted NO in voting cycle
        FAIL_FOR_NO_VOTERS:
            commands:
            - "tell {player} You voted NO in previous voting cycle!"

    #List of custom voting cycles
    #All messages is configurable in language file!
    Custom:
        Event:
            GLOBAL:
                commands: []
            SUCCESS_FOR_ALL:
                commands: []
            SUCCESS_FOR_YES_VOTERS:
                commands:
                - "warp Event {player}"
            FAIL_FOR_ALL:
                commands: []
            FAIL_FOR_NO_VOTERS:
                commands: []
     
    Config.yml: https://pastebin.com/sky95cyu
    At first, we need to inicialize it in config.yml.
    1. Open config
    2. Find a Custom section
    3. Choose a custom name as we want.
    4. Add necessary variables. (GLOBAL, SUCCESS_FOR_ALL) etc. We can copy them from the previous section.
    5. Set up commands
    Code (Java):
    Custom:
        CustomName: #Name of the question, which will be used at the command
            GLOBAL:
                commands: []
            SUCCESS_FOR_ALL:
                commands: []
            SUCCESS_FOR_YES_VOTERS:
                commands:
                - "say Hi {player}!"
            FAIL_FOR_ALL:
                commands: []
            FAIL_FOR_NO_VOTERS:
                commands: []
    Second, we need to set up message in language file.
    1. Open language file
    2. Find Custom section
    3. Set a custom name, which we chosen in the first step.
    4. Copy necessary variables from the previous section of Custom. E.g. Event
    5. Set up own messages as we want
    Code (Java):
    Custom:
        Event:
            start: "&7Do you want &3Event&7?"
            result:
                FAIL: "&cVoting for &3Event &cwas unsuccessful!"
                SUCCESS: "&7Voting for &3Event &7was successful!"
                ADMIN: "&7Result of voting &5\u00BB &a{yes}&7:&c{no}&7"
            clickable:
                agree:
                    ul: "&5\u25CF "
                    message: "&7&nYes, I want Event"
                    hover: "&7Click to select this option!"
                    command: "/voting yes"
                disagree:
                    ul: "&5\u25CF "
                    message: "&7&nNo, I do not want Event"
                    hover: "&7Click to select this option!"
                    command: "/voting no"
            bossBar: "&7&lVoting for &2&lEvent&7&l! | &2&l{time}&7&ls"
    Finish. If you fulfilled all steps correctly, you can use command /voting CUSTOM CustomName
    VOT-Signs.png
    1. *VOTING*
    2. Class*
    * Here write type of Class (DAY,SUN,RAIN,NIGHT,STORM)
    [​IMG]
    [​IMG]
    [​IMG] [​IMG] [​IMG] [​IMG]
    [​IMG]

    VOT-Donatial.png
    Preparing this resource takes me lots of time. If you like this plugin you can support me with a donation.

    PayPal-Donate.gif

    Donators:
    1. NorthMania - 5.00€

    If you have any ideas for plugins you can tell me them per PM
    You can look to my others resources: AutoMessages, Lottery, TicTacToe and Parkour
    Dracconus likes this.

Recent Updates

  1. 1.15 Support
  2. Support of 1.14
  3. Permissions Update

Recent Reviews

  1. MCRrrrrr
    MCRrrrrr
    5/5,
    Version: 2.5.0
    Does as it says. It allows players to vote for weather and time. It also allows charging players to start the vote and/or cast their vote. On my server, I have it set up to be free to vote, but cost to start a vote.
    1. SobkySK
      Author's Response
      Great, thank you :)
  2. FPCraftServers
    FPCraftServers
    5/5,
    Version: 2.5.0
    Best up to date weather/day voting plugin out there, have had zero issues in our time using this plugin. It also has a lot of configuration options which is a plus!
    1. SobkySK
      Author's Response
      Thanks :)
  3. Eochaidh
    Eochaidh
    4/5,
    Version: 2.4.0
    1. SobkySK
      Author's Response
      Takéto veci nepatria do hodnotení, ale do diskusie! Každopádne problém je v BossBare, akú verziu používaš? Poprosím PM alebo Koment do diskusie :)
  4. darkbeatx
    darkbeatx
    5/5,
    Version: 2.3.0
    muy buen plugin, estoy esperando con ansias la actualización compatible con la 1.14.x
  5. DAWE12100CZ
    DAWE12100CZ
    5/5,
    Version: 2.3.0
    Nejlepší plugin pro hlasování. Doufám, že bude brzy aktualizován na verzi 1.14.1. Moc děkuji!
    1. SobkySK
      Author's Response
      Ďakujem, a áno verzia 1.14 bude čoskoro podporovaná aj týmto pluginom :)
  6. Craiie
    Craiie
    4/5,
    Version: 2.3.0
    Great plugin, been using it since it came out. Developer seems to be super active as well. I hope you update the plugin to 1.14!
    1. SobkySK
      Author's Response
      Thanks for review :)
      Of course, version 1.14 will be supported in a following weeks.
  7. Windows9
    Windows9
    4/5,
    Version: 2.2.1
    How to remove DAY from votes? I really need this ty for plugin but need to customize this
  8. arboriginal
    arboriginal
    5/5,
    Version: 2.2.1
    Forgot to review... It works like a charm, no bugs and easy to configure and use.
    Thanks for sharing it!
  9. MrMorganCz
    MrMorganCz
    5/5,
    Version: 2.2.0
    -----------------------------------------------------------------------
    Thanks for updating this plugin. Excellent work :)!
    -----------------------------------------------------------------------
    1. SobkySK
      Author's Response
      Thanks for review :)
  10. Diamond_Cat
    Diamond_Cat
    5/5,
    Version: 2.1.0
    This plugin is very useful, and my players love it.
    The developer is very responsive. I asked if the plugin could be updated, and it was done in around 10 hours, which is absolutely amazing.
    1. SobkySK
      Author's Response
      Thank you :)