作者:rebot | 分类:模组
Minecraft 版本: 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 26.1 26.1.1 26.1.2
平台: bukkit folia paper purpur spigot
标签: game-mechanics utility
Version: 4.0.1 (8 May 2026) | Author: LunoX2 | License: MIT

A lightweight, optimized Minecraft plugin that allows a single player to skip the night by sleeping, without requiring all online players to sleep. Ideal for servers where players are spread across different areas or time zones.
OnePlayerSleep replaces Minecraft's default sleep requirement with a single-player trigger. When any player sleeps, the night is skipped for the entire server. The plugin is fully configurable, permission-aware, and built for minimal performance impact.
OnePlayerSleep-xx.jarplugins/ directory/reload confirm at your own risk)plugins/OnePlayerSleep/config.yml/oneplayersleep reloadconfig.yml# OnePlayerSleep Configuration
# Customize your plugin settings here
# Plugin Display Name
# Change this to match your server name (e.g., GlaceSleep, DreamSleep, etc.)
plugin-name: "OnePlayerSleep"
# Enable/Disable plugin on startup
enabled-on-startup: true
# Weather Clearing
# Set to true to clear rain/thunder when skipping night
# Set to false to only skip time without affecting weather
weather-clear: false
# Message Settings
message-settings:
# Show message when night is skipped
show-night-skip: true
# Show messages for enable/disable commands
show-toggle-messages: true
# Send messages to console
console-logging: true
# Messages (Use & for color codes)
messages:
night-skipped: "&6Night skipped by %player%"
plugin-enabled: "&a%plugin% enabled!"
plugin-disabled: "&c%plugin% disabled!"
plugin-reloaded: "&a%plugin% configuration reloaded!"
no-permission: "&cYou don't have permission to use this command."
status-enabled: "&6%plugin% is currently &aenabled&6."
status-disabled: "&6%plugin% is currently &cdisabled&6."
usage: "&6Usage: /oneplayersleep <enable|disable|reload>"
# Do not modify this
config-version: 1
| Command | Description | Permission |
|---|---|---|
/oneplayersleep |
Show plugin status and usage | oneplayersleep.toggle |
/oneplayersleep enable |
Enable the plugin | oneplayersleep.toggle |
/oneplayersleep disable |
Disable the plugin | oneplayersleep.toggle |
/oneplayersleep reload |
Reload configuration | oneplayersleep.reload |
| Permission | Description | Default |
|---|---|---|
oneplayersleep.toggle |
Allows toggling the plugin on/off | OP |
oneplayersleep.reload |
Allows reloading the configuration | OP |
oneplayersleep.* |
Grants all permissions | OP |
Grant a permission to a specific player:
/lp user <username> permission set oneplayersleep.toggle true
Grant a permission to a group:
/lp group <groupname> permission set oneplayersleep.toggle true
Grant all permissions to a player:
/lp user <username> permission set oneplayersleep.* true
The plugin is designed to have a negligible impact on server performance.
| Metric | Value |
|---|---|
| Memory usage | ~1 MB |
| Startup time | < 100 ms |
| Per-event processing | < 1 ms |
Optimizations include config value caching, message pre-processing, reflection method caching, and efficient event handling.
Does this work with sleeping percentage plugins?
OnePlayerSleep bypasses the vanilla sleep percentage requirement entirely. It may conflict with other sleep plugins.
Can I require 2 players to sleep instead of 1?
No. This plugin is designed specifically for single-player sleep triggering.
Does it work in the Nether or End?
No. Sleeping only functions in the Overworld, as per Minecraft's core mechanics.
Will it work on Minecraft 1.12 or older?
No. The minimum supported version is 1.16 due to API requirements.
Can I disable the startup messages?
Yes. Set message-settings.console-logging: false in your config.
Does weather clearing affect thunderstorms?
Yes. When weather-clear: true, both rain and thunder are cleared when night is skipped.
请登录后举报
暂无评论,抢个沙发吧~