OnePlayerSleep 3.1.5

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

  1. Leaf26
    Native Minecraft Version:
    Tested Minecraft Versions:
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    • 1.17
    Source Code:
    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


    • 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
    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!


    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:


    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


Recent Updates

  1. hotfix
  2. fix message reloading
  3. automatic worlds.yml updating for multiverse setups

Recent Reviews

  1. Cry_xiaoyu
    Version: 3.0.3
    It's such a great plugin!
    Might I introduce it to
    I hope more people kown about this plugin and use it
    I will also get people to download plugin in your post
    1. Leaf26
      Author's Response
      You can post it if you want to. I probably won't be able to read logs in other languages, though.
  2. ScreaminMonk
    Version: 2.0.2
    Works great and love the dialog in chat. Allows us to make things more personable for the server!
  3. Xarius86
    Version: 1.4.3
    Easy to use, does exactly what you would expect it to, and the developer quickly responds and fixes issues. Definitely recommended!
  4. Heny
    Version: 1.3.9
    Great! I love how one player can sleep alone. Now I can sleep without waiting for others to sleep.
  5. NordLord
    Version: 1.3.5
    Works great, has a lot of personality. Author responded to a bug fix immediately and fixed it shortly after. Definitely deserves more downloads.
    1. Leaf26
      Author's Response
      Thanks! Personality is what I was going for.
  6. smalldream
    Version: 1.3.1
    Great plugin
    Can I move it to
    I hope he can be seen by more people!
    Allow me to carry this plugin!