OnlySleep 图标

OnlySleep

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.3.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/onlysleep
资源信息

Minecraft 版本: 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11 26.1 26.1.1 26.1.2

平台: bukkit folia paper purpur spigot

标签: game-mechanics management utility

资源介绍

Onlysleep

Onlysleep

One player sleeps. Everyone wakes up.

No complicated setup. No wall of config. Drop the JAR in, restart, and players can actually skip the night for once.


Features

  • One-player sleep by default, or any percentage you want
  • Per-world sleep (each world tracks separately)
  • Weather skip: clear rain and thunder independently
  • Boss bar, action bar, progress bar, and title support
  • Sounds when someone starts sleeping and when night is skipped
  • AFK detection (built-in, plus EssentialsX and CMI)
  • Filters out spectators, creative, flying, and exempt players
  • Automatic gamerule management for playersSleepingPercentage
  • PlaceholderAPI: 12+ placeholders
  • Update checker and bStats (opt-out available)

Installation

Installation Steps

Requirements: Minecraft 1.16–26.2 and Java 21+. Paper 26.1+ requires Java 25. Works on its own. PlaceholderAPI is optional.


Commands

Commands Preview

Aliases: /os, /sleep


Permissions

Permission Default Description
onlysleep.* OP All permissions
onlysleep.command Everyone Use commands
onlysleep.info OP View plugin info
onlysleep.reload OP Reload config
onlysleep.status OP View status
onlysleep.exempt None Excluded from sleep (operators sleep by default)
onlysleep.update OP Update alerts

Configuration

Defaults work fine. The main knob is sleep-percentage in config.yml:

  • 0 = one player sleeps, everyone wakes up
  • 50 = half the server needs to be in bed
  • 100 = everyone has to sleep

Set per-world-sleep: false if you want global counting across all worlds.

See config.yml for every option and messages.yml for message customization.


PlaceholderAPI

PlaceholderAPI Preview

If you have PlaceholderAPI installed, these placeholders are available:

Placeholder Description
%onlysleep_sleeping% Sleeping players in the player's world
%onlysleep_required% Players needed to skip the night
%onlysleep_percentage% Configured sleep percentage
%onlysleep_total% Total eligible players in the world
%onlysleep_progress% % of required sleepers achieved (0-100)
%onlysleep_progress_bar% Visual progress bar
%onlysleep_sleeping_names% Names of sleeping players
%onlysleep_status% "Sleeping" or "Awake"
%onlysleep_is_sleeping% true/false
%onlysleep_is_night% true/false if it's night
%onlysleep_is_sleepable% true/false if night/storm
%onlysleep_skipping% true/false if a skip is scheduled
%onlysleep_enabled% true/false if sleeping is enabled in the world
%onlysleep_afk% true/false if the player is AFK
%onlysleep_version% Plugin version
%onlysleep_platform% Server platform (Folia/Paper/Spigot/Bukkit)
%onlysleep_world_sleeping_<world>% Sleeping count in a specific world
%onlysleep_world_required_<world>% Required count in a specific world
%onlysleep_world_total_<world>% Total eligible in a specific world

bStats

bStats

Anonymous stats only. No personal data. Opt out in plugins/bStats/config.yml.

Links


Sponsored By

Nexeu Sponsor
Looking for high-performance, budget-friendly game server hosting? Check out Nexeu Hosting!
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Vanilla 8x8

价格:0 墨喵币
下载量:0

查看详情
Disable Nether End

价格:0 墨喵币
下载量:0

查看详情
GG Hardcore SMP

价格:0 墨喵币
下载量:0

查看详情
MineSHOCK: CyberNightmare

价格:0 墨喵币
下载量:0

查看详情