# 🌙 OnePlayerSleep
**OnePlayerSleep** is a lightweight, easy-to-use mod and plugin for Minecraft Java Edition that allows a single player to sleep and instantly skip the night in multiplayer worlds.
No more waiting for all players on the server to get into bed! As soon as one player enters a bed, a chat notification is sent, and the time smoothly advances to morning while clearing rainy or stormy weather.
---
## ✨ Features
- **Single Player Night Skip:** Only **1 player** needs to sleep to turn night into day in a multiplayer server/world.
- **Weather Clear:** Automatically clears rain and thunderstorms when morning arrives.
- **Chat Announcements:** Broadcasts a notification when a player goes to bed and when morning comes.
- **Universal Compatibility:** Works on Paper, Spigot, Fabric, Forge, and Vanilla (1.13 - 1.21+).
- **Lightweight & High Performance:** Zero lag, lightweight code.
---
## 🛠️ Commands
- `/oneplayersleep toggle` (Alias: `/ops toggle`) - Enables or disables the single player sleep feature in-game.
---
## 💻 Installation
### For Servers (Paper / Spigot / Purpur / Hybrid)
Place the `OnePlayerSleep.jar` file into your server's `plugins/` directory and restart the server.
### For Singleplayer / LAN (Fabric / Forge / Vanilla)
Either use the included `OnePlayerSleep_Datapack.zip` in your world's `datapacks/` folder, or run the following command in-game:
`/gamerule playersSleepingPercentage 1`