One PlayerSleep

One PlayerSleep

Mod

The One Player Sleep mod enhances sleep management on multiplayer servers by allowing players to easily change the percentage of players required to sleep simultaneously to skip the night.

Server Game MechanicsOptimizationUtility

7,426 downloads
7 followers
Follow Save

One PlayerSleep

The One PlayerSleep mod enhances sleep management on multiplayer servers by allowing players to easily change the percentage of players required to sleep simultaneously to skip the night. This mod is especially useful for servers with many players, where it can be challenging for everyone to sleep at the same time. With this mod, just one player or a configurable percentage of players can sleep to transition from night to day.

Basic Setup

  1. Install the mod on your server
  2. Use /sleep percentage 25 to require only 25% of players to sleep
  3. Players can now sleep to skip the night with fewer participants

Advanced Configuration

/sleep percentage 10    # Only 10% of players need to sleep
/sleep nether on        # Allow sleep in Nether
/sleep messages off     # Disable sleep messages
/sleep reload           # Reload configuration from file
/sleep cooldown clear   # Clear all sleep cooldowns

How It Works

  1. Night Detection: The mod monitors when it's night time in the world
  2. Player Counting: Counts the total number of players and sleeping players
  3. Percentage Calculation: Calculates required sleepers based on configuration
  4. Cooldown Check: Prevents rapid sleep/wake cycles with configurable cooldowns
  5. Sleep Trigger: When enough players sleep, the night is skipped to day
  6. Auto Wake-up: All sleeping players are automatically woken up
  7. Performance Optimized: Only checks every 20 ticks (1 second) for better performance

This mod provides a simple but powerful way to improve the quality of life on multiplayer servers by reducing the hassle of coordinating sleep.


Project members

RobTrap

Member

Details

Licensed ARR
Published a year ago
Updated 5 days ago