Server Sleep Plugin 图标

Server Sleep Plugin

作者:rebot | 分类:模组

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

Minecraft 版本: 1.12.2 1.13 1.13.1 1.13.2 1.14 1.14.1 1.14.2 1.14.3 1.14.4 1.15 1.15.1 1.15.2 1.16 1.16.1 1.16.2 1.16.3 1.16.4 1.16.5 1.17 1.17.1 1.18 1.18.1 1.18.2 1.19 1.19.1 1.19.2 1.19.3 1.19.4 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

平台: bukkit paper purpur spigot

标签: game-mechanics management utility

资源介绍

ServerSleep

A lightweight, highly compatible Bukkit/Spigot/Paper plugin that lets you control how many players must sleep to skip the night — without breaking the day counter or phantom timers.

Unlike many night-skip plugins that use setTime(0) and reset the world day count (affecting statistics, phantoms, and more), ServerSleep uses the correct absolute time method (setFullTime) to advance properly to the next morning, just like vanilla sleeping.

Perfect for servers running older versions (pre-1.17) where the built-in playersSleepingPercentage gamerule doesn't exist or behaves inconsistently.

Features

  • Configurable sleep percentage:
    • 100 = Vanilla behavior (all players must sleep)
    • 50 = Half the players needed
    • 0 = A single player can skip the night
  • Does NOT reset the day count — preserves world statistics and phantom spawning timers.
  • Automatically resets phantom timers for players who sleep.
  • Clears weather (storm/thunder) after skipping night.
  • Fully respects the gamerules doDaylightCycle and doWeatherCycle.
  • Supports Overworld only (Nether/End unaffected).

Commands (OP / serversleep.command permission)

  • /serversleep — Show current sleep percentage.
  • /serversleep percent <0-100> — Change the required sleep percentage and save to config.
  • /serversleep reload — Reload the configuration file.

Configuration

The plugin uses plugins/ServerSleep/config.yml

# Percentage of non-spectator players required to be sleeping to skip the night.
# Range: 0-100 (0 = one player, 100 = all players)
sleep-percentage: 100

# Message broadcast to the world when night is skipped. Supports & color codes.
# Leave empty ("") to send no message.
skip-message: "&6Night has been skipped! Good morning."

# Clear rain/thunder when night is skipped (only fires if doWeatherCycle is on).
clear-weather: true

# Reset each sleeping player's phantom timer when night is skipped (1.13+).
reset-phantoms: true
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Fryc's Parry (aka Sword Parry)

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

查看详情
Mini Crosshair - Aim

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

查看详情
Auto Builder

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

查看详情
Better Glass Texture

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

查看详情