Add /votenight support

This commit is contained in:
2026-06-09 20:17:51 -04:00
parent c411e35ea2
commit 9cb21f03cf
8 changed files with 148 additions and 19 deletions
+22 -4
View File
@@ -1,8 +1,9 @@
vote-day:
enabled: true
# Empty list = all worlds
worlds: []
# Plugin will only work in these worlds
worlds:
- "world"
# Only allow /voteday during night
only-during-night: true
@@ -18,14 +19,31 @@ vote-day:
# dirtsleep.bypass
exclude-bypass: true
vote-night:
enabled: true
# Only allow /votenight during daytime
only-during-day: true
# Tick time where day effectively ends for vote checks
day-ends-at: 12542
messages:
prefix: "&8[&bDirtSleep&8] &7"
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."
world-disabled: "%prefix%&cVote day is disabled in this world."
night-vote-added: "%prefix%&e%player% &7voted for night. &f(%votes%/%required% votes, %remaining% remaining)"
night-vote-passed: "%prefix%&aVote passed! Skipping to night."
night-already-voted: "%prefix%&cYou already voted for night."
not-day: "%prefix%&cYou can only use this during the day."
night-disabled: "%prefix%&cVote night is disabled."
world-disabled: "%prefix%&cVote commands are disabled in this world."
reloaded: "%prefix%&aConfig reloaded."
no-permission: "%prefix%&cYou do not have permission."
usage: "%prefix%&7Use: &f/dirtsleep reload"