Sueta

PlayerSleep

1.0.0

Control how many players must sleep to skip the night.

·Plugin
Tested MC versions
1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19, 1.20, 1.21

🌙 PlayerSleepX

🛏️ Control how many players must sleep to skip the night!
A simple, configurable plugin for Minecraft servers that makes multiplayer sleeping fair and flexible.


✨ Features

  • ⚙️ Customizable sleep system — Define how many players need to sleep to skip the night.

  • 📊 Two modes:

    • Percentage – e.g. 50% of players must sleep
    • Amount – e.g. exactly 3 players must sleep
  • 💬 Broadcast messages when players go to bed or when the night is skipped.

  • 🔄 Reload & configure in-game via /playersleep command.

  • 💡 Lightweight & fast — no dependencies, instant setup.


🧩 Commands

CommandDescriptionPermission
/playersleepShows help and usageplayersleep.command
/playersleep reloadReloads the config fileplayersleep.command
`/playersleep set <enabledmodevalue> `Changes plugin settingsplayersleep.command

🛠️ Examples

/playersleep set mode percentage
/playersleep set value 50
/playersleep reload

⚙️ Configuration (config.yml)

enabled: true
mode: percentage  # or "amount"
value: 50
  • enabled → Enables or disables the plugin
  • mode → Choose between percentage or amount
  • value → Defines the percentage or amount required

🪄 Permissions

playersleep.command:
  description: Allows use of the /playersleep command
  default: op

🧰 Installation

  1. Download the latest .jar from Modrinth.
  2. Place it in your server’s plugins/ folder.
  3. Restart or reload your server.
  4. Adjust the config in plugins/PlayerSleepX/config.yml if needed.

📸 Example Messages

[Sleep] Alex went to bed (2/3)
[Sleep] Enough players are sleeping! Skipping the night...

👨‍💻 Developer Info

  • Main class: de.scholle.playersleep.PlayerSleep
  • Command alias: /psleep
  • Plugin prefix: SleepX
  • Load: STARTUP

📄 License

Apache License 2.0
Copyright © Mobilestars

You are free to use, modify, and distribute this plugin under the terms of the Apache 2.0 license.
Read more →


🌐 Links


💛 Made with care by Mobilestars — helping your players sleep better! 😴

Similar projects

Plugin →