Made the vote clickable

This commit is contained in:
2026-06-09 20:45:18 -04:00
parent 9cb21f03cf
commit 535af85ecb
11 changed files with 336 additions and 145 deletions
+39 -8
View File
@@ -11,7 +11,7 @@ vote-day:
# Tick time where night starts
night-starts-at: 12542
# Required votes before changing to day
# Required YES votes before changing to day
# Examples: "1", "2", "50%", "75%"
required-votes: "50%"
@@ -28,19 +28,50 @@ vote-night:
# Tick time where day effectively ends for vote checks
day-ends-at: 12542
# Required YES votes before changing to night
# Examples: "1", "2", "50%", "75%"
required-votes: "50%"
# Ignore players with this permission from vote requirement:
# dirtsleep.bypass
exclude-bypass: true
vote-session:
# How long a vote stays open
duration-seconds: 30
messages:
prefix: "&8[&6DirtBagMC&8] &7"
vote-added: "%prefix%&e%player% &7voted for day. &f(%votes%/%required% votes, %remaining% remaining)"
vote-passed: "%prefix%&aVote passed! Skipping to day."
already-voted: "%prefix%&cYou already voted."
not-night: "%prefix%&cYou can only use this at night."
disabled: "%prefix%&cVote day is disabled."
vote-started-day: "%prefix%&e%player% &7started a vote to make it &fday&7. &aYES: &f%yes%&7/&f%required% &8| &cNO: &f%no%"
vote-started-night: "%prefix%&e%player% &7started a vote to make it &fnight&7. &aYES: &f%yes%&7/&f%required% &8| &cNO: &f%no%"
night-vote-added: "%prefix%&e%player% &7voted for night. &f(%votes%/%required% votes, %remaining% remaining)"
click-prompt: "%prefix%&7Click below to vote."
vote-progress-day: "%prefix%&7Day vote status: &aYES: &f%yes%&7/&f%required% &8| &cNO: &f%no%"
vote-progress-night: "%prefix%&7Night vote status: &aYES: &f%yes%&7/&f%required% &8| &cNO: &f%no%"
vote-passed: "%prefix%&aVote passed! Skipping to day."
night-vote-passed: "%prefix%&aVote passed! Skipping to night."
vote-failed: "%prefix%&cVote failed."
vote-expired: "%prefix%&cVote to make it day expired."
night-vote-expired: "%prefix%&cVote to make it night expired."
vote-yes-confirm: "%prefix%&aYou voted YES."
vote-no-confirm: "%prefix%&cYou voted NO."
vote-already-running: "%prefix%&cA vote is already running in this world."
no-active-vote: "%prefix%&cThere is no active vote in this world."
wrong-vote-command: "%prefix%&cUse the correct vote buttons for the current vote."
already-voted: "%prefix%&cYou already voted."
night-already-voted: "%prefix%&cYou already voted for night."
not-day: "%prefix%&cYou can only use this during the day."
not-night: "%prefix%&cYou can only start this vote at night."
not-day: "%prefix%&cYou can only start this vote during the day."
disabled: "%prefix%&cVote day is disabled."
night-disabled: "%prefix%&cVote night is disabled."
world-disabled: "%prefix%&cVote commands are disabled in this world."