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
Binary file not shown.
+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"
+3
View File
@@ -8,6 +8,9 @@ commands:
voteday:
description: Vote to make it day
usage: /voteday
votenight:
description: Vote to make it night
usage: /votenight
dirtsleep:
description: DirtSleep admin command
usage: /dirtsleep reload
+1 -1
View File
@@ -1,5 +1,5 @@
#Generated by Maven
#Tue Jun 09 16:14:06 EDT 2026
#Tue Jun 09 20:09:21 EDT 2026
artifactId=DirtSleep
groupId=com.bitnix
version=1.0-SNAPSHOT