Skip to content

SwordfishBE/SleepMenu

Repository files navigation

SleepMenu

SleepMenu is a server-side Fabric mod for Minecraft. Players standing on a bed get a clickable chat menu to change time and weather.

Stand on a bed, click your choice, and shape the sky: day, night, clear, rain, or thunder.

GitHub Release GitHub Downloads Modrinth Downloads CurseForge Downloads


🎮 Commands

  • /sleepmenu open
  • /sleepmenu set <option>
  • /sleepmenu reload (admin only; console allowed)

Options:

day, midnight, night, noon, clear, rain and thunder

If Mod Menu and Cloth Config are installed, the config can also be edited through an in-game config screen in single-player or while hosting locally. When connected to a remote dedicated server, edit the server config file directly and run /sleepmenu reload.


🔨 Server-side

This mod runs fully server-side. Clients do not need to install the mod. Also works in single-player (without LuckPerms support).


🔄 LuckPerms permissions

If LuckPerms is installed, these nodes are checked:

  • sleepmenu.use
  • sleepmenu.time.day
  • sleepmenu.time.midnight
  • sleepmenu.time.night
  • sleepmenu.time.noon
  • sleepmenu.weather.clear
  • sleepmenu.weather.rain
  • sleepmenu.weather.thunder

If LuckPerms is missing, fallback behavior is controlled by config.

🌍 LuckPerms quick start

Example: allow everyone to open the Sleep Menu, but only moderators to change weather.

/lp group default permission set sleepmenu.use true
/lp group moderator permission set sleepmenu.weather.clear true
/lp group moderator permission set sleepmenu.weather.rain true
/lp group moderator permission set sleepmenu.weather.thunder true

Official LuckPerms docs:


⚙️ Configuration

Config file: config/sleepmenu.json

{
  "cooldownTicks": 400,
  "antiSpamWindowTicks": 12000,
  "timeChangeLimit": 4,
  "weatherChangeLimit": 4,
  "noLuckPermsAccess": "EVERYONE"
}
  • cooldownTicks: minimum ticks between successful changes per player (20 ticks = 1 second).
  • antiSpamWindowTicks: shared anti-spam window for successful changes across all players. Default 12000 ticks = 10 minutes.
  • timeChangeLimit: maximum successful time changes allowed inside the anti-spam window. Set 0 to disable.
  • weatherChangeLimit: maximum successful weather changes allowed inside the anti-spam window. Set 0 to disable.
  • noLuckPermsAccess: EVERYONE or OP_ONLY.

📦 Installation

Platform Link
GitHub Releases
Modrinth SleepMenu
CurseForge SleepMenu
  1. Download the latest JAR from your preferred platform above.
  2. Place the JAR in your server's mods/ folder.
  3. Make sure Fabric API is also installed.
  4. Start
  5. Minecraft — the config file will be created automatically.

🧱 Building from Source

git clone https://github.com/SwordfishBE/SleepMenu/TpWithMe.git
cd SleepMenu
chmod +x gradlew
./gradlew build
# Output: build/libs/sleepmenu-<version>.jar

⁉️ Credits/Idea

Based on the command blocks setup created by TOLoneWolf's: Sleep Menu System for Hypermine SMP


📄 License

Released under the AGPL-3.0 License.

About

Sleep Menu turns every bed into a quick server-side control panel for time and weather.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages