Source-checkedOther

OnePlayerSleep

by Leaf26 · for Minecraft

Conditionally pass the night/storm if a player sleeps, based on the OnePlayerSleep datapack

535KDownloads
4 mo agoLast updated
Spigot · PaperLoaders
26.2Latest game version

About OnePlayerSleep

From SpigotMC

Conditionally pass the night/storm if a player sleeps, based on the OnePlayerSleep datapack

OnePlayerSleep
lightweight, configurable spigot plugin inspired by the OnePlayerSleep datapack

Tired of waiting for everyone else to sleep? Now you can just get in bed to pass the night and clear those nasty thunderstorms! (as long as there are no objections)

This plugin was developed to add life to community-oriented minecraft servers.

Annotation 2020-03-27 121454.png

Features:

  • Configurable & Expandable list of sleep messages, including chance per message
  • Bukkit color code support
  • PlaceholderAPI support
  • Globally updated phantom spawning flags
  • Set the range of time that sleep is allowed
    • currently capped by vanilla sleep times in the overworld
  • Async randomization and messaging
  • Configurable night passing animation (tickrate and time passed per tick)
  • Configurable multi-world and multi-dimension time synchronization
  • Configurable per-world messaging
  • Enable/disable nether/end sleeping
  • Enable/disable afk/vanish detection
  • todo list:
    • overworld sleeping outside of vanilla times
    • permission for running sleep task without a bed
Functionality:
This plugin simply sets up some tasks to pass time, pick a message, and deliver the message to all relevant players.

OnePlayerSleep Wiki

Through configuration options, you can add any number of sleep messages, randomize the message per-player, deliver to and sync with other worlds or dimensions, add placeholders for world names, reset the TIME_SINCE_REST statistic for all relevant players, set a bed cooldown to prevent sleep message spam, change how fast the night passes while sleeping, or even shorten the range of time when sleep is allowed.

If there's effectively only one player online to see the message, the message is skipped. OnePlayerSleep is compatible with plugins like EssentialsX and SuperVanish that setSleepingIgnored as part of /afk and /vanish.


Configurable, Randomized Sleep Messages
With this plugin, we can add any number of messages with custom text, custom hover text, custom wakeup text, and even bukkit color codes!

2020-03-27_12.18.58.png

Each message has a configurable chance to be selected, out of the sum of all message chance values.

Configurable Sleep Functionality
Sleep announcements are not given to players in other worlds by default, but configuration allows us to share time and make announcements to other worlds, other dimensions, or both:
Capture.PNG

as well as reformat the messages in messages.yml.

Async Randomization
The random selection of a message is run asynchronously to maintain performance on the main thread.

PAPI Support
This plugin supports PlaceholderAPI placeholders in all messages as well as having a few of its own placeholders.

Two placeholders are added for use with PAPI ( wiki):
  • %oneplayersleep_sleeping_player_count% - number of players currently asleep
  • %oneplayersleep_total_player_count% - number of players not ignored by the plugin

bStats
[​IMG]

Highlights

From source data

Game versions

Supports 8 Minecraft versions, the newest being 26.2.

Loaders

Runs on Spigot and Paper.

Footprint

Rated a light load on a server.

OnePlayerSleep on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers, for Paper servers. We download it from SpigotMC, place it, and restart the server.
Server side
Required on the server
Server type needed
Spigot, Paper
Server load
light
Smallest plan we suggest
Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
3.1.17, released 2026-07-01

Game versions by loader

LoaderGame versionsNewest
Paper1.17 to 26.2 (8 versions)26.2
Spigot1.17 to 26.2 (8 versions)26.2

From 10 recorded builds of OnePlayerSleep.

Recent builds

BuildReleasedGame versionsLoaders
3.1.172026-07-011.17 to 26.2 (8 versions)Spigot, Paper
3.1.162023-02-07n/aSpigot, Paper
3.1.152023-01-29n/aSpigot, Paper
3.1.142023-01-27n/aSpigot, Paper
3.1.132023-01-20n/aSpigot, Paper
3.1.122023-01-14n/aSpigot, Paper

Run OnePlayerSleep on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on SpigotMC as “Plugins”

Plugins

Its source category doesn’t say more about what it does, so NxLabs lists it under Other.

Runs on your server

From source side support

SpigotMC lists OnePlayerSleep as required on the server. Check its SpigotMC page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
SpigotPaper
Runs on
Serverrequired on the server
Game versions
26.2 and 7 earlier
Requires
One-click install needs a Paper server.

Verified at the source

  • ✓SpigotMCOfficial listing, checked 2026-10-01Open ↗
  • ✓AuthorLeaf26, as published on SpigotMC
  • ✓LicenseNot published by the sourceFree

OnePlayerSleep, answered

Generated from the mod’s own source data.

Do my players need to install OnePlayerSleep?

SpigotMC lists OnePlayerSleep as required on the server. Check its SpigotMC page to see whether players need it too.

Which loaders does it support?

Spigot and Paper.

Is it free?

Yes. OnePlayerSleep is free to download from SpigotMC.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run OnePlayerSleep on a Minecraft server.

Deploy in about a minute from $4.99 a month, then add OnePlayerSleep in one click.