OnePlayerSleep
OnePlayerSleep is a
lightweight and
world-aware solution designed for modern Minecraft communities. This script
eliminates the frustration of needing every player on a server to find a bed simultaneously just to skip a thunderstorm or a long night. Instead of a global reset that disrupts everyone, this script targets only the specific dimension where the player is resting.
The Experience
When a player climbs into bed, the script waits for two seconds to confirm they aren't just clicking by accident. Once the sleep is confirmed, the time in that specific world instantly shifts to morning and any ongoing storms are cleared. Rather than cluttering the chat window with text, all players in that world receive a sleek notification on their Action Bar right above their inventory slots. This message highlights the sleeping player’s name in a vibrant purple so the community knows exactly who helped pass the night.
Simple Installation
To use this on your server, ensure you have the Skript plugin installed. You simply need to create a new file named OnePlayerSleep.sk within your scripts folder and paste the provided code. After running a quick reload command, your server will have a professional and non-intrusive sleep system ready to go.