HomeJavaModsVote Day Skript
Vote Day Skript
Vote Day is a simple skript allowing the users of your server to Vote for it to become daytime in a specific world. It requires 50% of the users on the server to run the command /voteday.

If 50% of the users run the command the world will change to daytime.

Spoiler: Skript
Code (Text):

options:
    _world: world
variables:
    {Votes} = 0
    {canVote.%player%} = true
command /voteday:
    description: Vote for it to become day
    executable by: players
    trigger:
        if {canVote.%player%} is true:
            if {Votes} = 0:
                add 1 to {Votes}
                set {canVote.%player%} to false
                broadcast "&c[&4&lVoteDay&c] There are currently %{Votes}% / %round(number of all players/2)% for vote day."
            if {Votes} is higher than number of all players/2:
                set {Votes} to 0
                broadcast "&c[&4&lVoteDay&c] Setting time to day."
                set time in world("{@_world}") to 06:00
                set {canVote.%player%} to true
                stop
            else if {Votes} is equal to number of all players/2:
                set {Votes} to 0
                broadcast "&c[&4&lVoteDay&c] Setting time to day."
                set time in world("{@_world}") to 06:00
                set {canVote.%player%} to true
                stop
        else if {canVote.%player%} is false:
            send "&c[&4&lVoteDay&c] You have already voted during this day cycle." to the player
            stop
command /requiredvotes:
    description: Checks how many votes are votes are required for vote day
    permission: "ascal.admin"
    executable by: players
    trigger:
        message "{Required_Votes}"
 
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Vote Day Skript is a free Minecraft Java mod. Compatible with Minecraft 1.11, 1.12. Downloaded 1,008 times (via Spigot). Download it and open it directly in the game.

Explore more