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.
If 50% of the users run the command the world will change to daytime.
Spoiler: Skript
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}"
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
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.11, 1.12
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
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.