BetterSleep‎ ‎
PluginMIT

BetterSleep‎ ‎

A Simple Sleep Plugin That Makes Not The Whole Server Sleep To Skip A Night

1.3K
Downloads
2
Followers
8 months ago
Updated
📦
1
Versions

📖About BetterSleep‎ ‎

Overview

Enhance your server’s night-skipping logic with BetterSleep—flexible, configurable, and packed with safety checks.

Features

  • Configurable Threshold: Define how many players must sleep to skip the night.
  • Normal Bed Animation: Full sleep animation is preserved before time advances.
  • Safety Checks:
    • Night (12541–23458 ticks) or thunderstorm only
    • Must be within 8 blocks of your bed
    • No monsters within an 8×5×8 area
  • Live Counter: ActionBar displays “x/needed players sleeping”.
  • Easy Reload: /sleep reload applies config changes instantly.

Configuration (config.yml)

players-needed: 1

Permissions

  • bettersleep.admin (Default: op): Grants access to /sleep Players set <#> and /sleep reload.

Commands

  • /sleep Players set <number> — Set the sleep threshold.
  • /sleep reload — Reload the configuration.

Both commands require operator status or explicit bettersleep.admin.


Happy sleeping!