first commit

This commit is contained in:
2026-06-09 16:22:22 -04:00
commit c411e35ea2
12 changed files with 383 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
vote-day:
enabled: true
# Empty list = all worlds
worlds: []
# Only allow /voteday during night
only-during-night: true
# Tick time where night starts
night-starts-at: 12542
# Required votes before changing to day
# Examples: "1", "2", "50%", "75%"
required-votes: "50%"
# Ignore players with this permission from vote requirement:
# dirtsleep.bypass
exclude-bypass: true
messages:
prefix: "&8[&bDirtSleep&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."
reloaded: "%prefix%&aConfig reloaded."
no-permission: "%prefix%&cYou do not have permission."
usage: "%prefix%&7Use: &f/dirtsleep reload"
+21
View File
@@ -0,0 +1,21 @@
name: DirtSleep
version: 1.0
main: com.bitnix.dirtsleep.DirtSleepPlugin
api-version: '1.21'
author: bitnix
description: Simple vote day plugin
commands:
voteday:
description: Vote to make it day
usage: /voteday
dirtsleep:
description: DirtSleep admin command
usage: /dirtsleep reload
permission: dirtsleep.admin
permissions:
dirtsleep.admin:
description: Allows reloading DirtSleep
default: op
dirtsleep.bypass:
description: Excludes player from required vote calculations
default: false