Перейти к содержимому
Mineforgian

BetterSleep‎ ‎

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

Загрузки
2K
Подписчики
3
Обновлён
29 июля 2025 г.
Лицензия
MIT

Опубликован 29 июля 2025 г.

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!

Ченджлог

1.0Релиз1.21.9, 1.21.10, 1.21.11 · 29 июля 2025 г.

Changelog

[1.0.0] – Initial Release

Added

  • Configurable sleep threshold (players-needed) via /sleep Players set <number>
  • /sleep reload command to reload config on-the-fly
  • Bed enter checks:
    • Only at night or during a thunderstorm
    • Must be within 8 blocks of your bed
    • No monsters within a 8×5×8 area
  • Live ActionBar counter showing “x/needed players sleeping”
  • Normal bed animation with a 20-tick delay before the night is skipped

Changed

  • N/A (first release)

Fixed

  • N/A (first release)

Комментарии

Загружаем…