Have a problem with night skipping instantly?
This isn't a bug with SmoothSleep; it's an Essentials feature. To fix, negate the essentials.sleepingignored permission and have players who previously had this permission log out and back in to allow Essentials to cache the permission.

SmoothSleep is designed to gradually progress the night at a speed depending on how many players are sleeping. The time it takes for night to pass is configurable per world. If a player is set to ignore sleep, they can still progress time by sleeping, but won't be considered if they're awake.

Configurable titles, action bar text, and title text can be shown to players to let everyone know that players are sleeping and keep track of time as well as supporting some placeholders.

Players can optionally be healed, fed (or hurt/starved), and have potion effects removed overnight, depending on how long the player sleeps.

Here is a very short demo of what it does!

Players are greeted in the morning, kicking the lazy bums out of bed bright and early. Come morning (if reached via sleeping), the weather will also clear up (configurable as well), like vanilla sleeping will do.

If you use SmoothSleep and want your server listed here, send me a message!

Please respect the rules of each server!

​

smoothsleep.reload
Allows you to reload the config with /ssreload

smoothsleep.toggle
Allows you to temporarily disable and re-enable SmoothSleep with /sstoggle

smoothsleep.configure
Allows you to manage the config via the /ssconf command

smoothsleep.addworld
Allows you to add world configuration sections to the config via the /ssaddworld command

smoothsleep.ignore
Allows you to bypass needing to sleep. Players with this permission can sleep to pass time, but won't be counted as awake otherwise. This works just like being set to sleep ignored with the Bukkit API, but doesn't actually set the player as sleep ignored.

smoothsleep.metrics
Allows you to toggle SmoothSleep metrics with /ssmetrics

smoothsleep.notify
Receive a notice when you login if there's an update available for the plugin

smoothsleep.ignoreheal
Users with this permission will not be healed over night

smoothsleep.ignorefeed
Users with this permission will not be fed over night

smoothsleep.sleepreward
Users with this permission will receive the configured sleep rewards if they've slept until morning and for at least the number of hours required. This permission is granted by default.

​

/ssreload
Reloads the config

/sstoggle
Temporarily disables or re-enables the plugin. If the server is restarted or reloaded, then the plugin will re-enable. This can be useful if you want to remove the plugin, but not immediately restart, or if you need to disable it for an event or minigame, etc.

/ssconf
Sets config options via command. Use the command with no arguments to list which options can be modified and how to use the command.

/ssaddworld
Allows you to add a new world to the config with default settings so that it can be more easily modified.

/ssmetrics
Allows you to toggle metrics. Using this will disable metrics and also toggles the config value for you.

To change the world where SmoothSleep is used, just change 'world' to the name of the world you want to use, or make a copy of the 'world' section with a new name. If you'd like to add a new world to the config, use /ssaddworld <word>

Global Settings​

enable-stats
You can disable metrics by setting this to false or by using /ssmetrics in game to toggle it. If enabled, some data is sent to bStats.org.

update-notify-login
If this is enabled, staff can be notified when an update is available for the plugin when they login.

Logging options
These are self-explanatory, choose which logging levels to show in the console. I’d recommend against having debug enabled unless you’re trying to find an issue as it can be somewhat overkill.

Per-World Settings​

min-night-speed-mult
The lowest possible night speed multiplier (if the tiniest fraction of players are sleeping). Keep in mind that SmoothSleep won't affect the speed if no one is sleeping, this only applies if at least one person is asleep. Must be a whole number greater than 0.

max-night-speed-mult
The highest possible night speed multiplier (if everyone is sleeping). Must be a whole number greater than 0.

night-speed-curve
This value allows you to tweak how the ratio of players sleeping affects the speed of night. With values less than 0.5, fewer sleepers will affect the speed less, then as more players sleep, it ramps up more quickly. With values more than 0.5, it's the opposite. At exactly 0.5, it's a linear increase. If you set the value to 0, then night speed will be the min speed until everyone is asleep, then it'll be max speed. If it's 1, then it'll be max speed if anyone sleeps. Only values between 0-1 are accepted. To get a better visualization of how this value works, check out this graph on Desmos: https://www.desmos.com/calculator/nwmstzhjgv

In this graph, the X-axis represents the percent of players sleeping, and the Y-axis represents how fast night should pass (between the min and max night speeds)

accelerate-random-tick
This option allows SmoothSleep to modify the randomTickSpeed gamerule during the night. This will speed up anything that's effected by random ticks, which includes: crop growth, leaf decay, grass/vine spread, etc.

max-random-tick
This allows you to cap how fast the randomTickSpeed is able to be set. Having a value that's ridiculously high can cause lag, so if you already have a high randomTickSpeed set and don't want to go too high, you can use this.

accelerate-weather
This should make weather go by quicker similar to how night works. Since it's difficult to properly test this, I can't even say it works, but the option is here.

morning-sound
If this is a valid sound, then it will play for a player when they wake up. To disable, leave this blank.

clear-weather-when-morning
If true, then rain and storms are stopped when it reaches morning if any players are still in bed at that time.

heal-slept-villagers
This will allow SmoothSleep to fully heal villagers that are sleeping when it reaches morning time. This is just in case the plugin somehow prevents the vanilla healing mechanic.

instant-day-if-all-sleeping
Self-explanatory. If all non-sleep-ignored players are sleeping, then this will set the time instantly to day while still showing the morning title/subtitle. This is far more instant than vanilla. As soon as the last (or only) person clicks the bed, it will set time to day, unlike how vanilla will wait for you to sit in bed for a few seconds.

titles​

enabled
If true, then a title will display the in-game time, the number of players sleeping / total non-sleep-ignored players, and the current night speed multiplier.

morning-title
The title shown upon waking up if 'use-titles' is enabled.

morning-subtitle
The message shown under the title upon waking up if 'use-titles' is enabled.

sleep-title
The title shown while sleeping if 'use-titles' is enabled.

sleep-subtitle
The message shown under the title while sleeping if 'use-titles' is enabled.

Action-bar​

enabled
If true, then a message will appear above the hot bar with the specified title when players are sleeping. By default, this is used to show sleepers their health/food level while sleeping since the ‘leave bed’ button blocks the normal UI elements in some cases.

show-if-awake
Whether or not to show the action bar to players if they’re not sleeping.

title
What text to show in the action bar while players are sleeping (supports placeholders)

Boss-bar​

enabled
If true, then a boss bar with a title will be displayed at the top of the screen when players are sleeping.

show-if-awake
Whether or not to show the boss bar to players if they’re not sleeping.

title
What text to show in the boss bar while players are sleeping (supports placeholders)

morning-particle-options​

enabled
Whether or not to spawn particles in the morning

particle
This is the name of the particle you wish to use. Note that particles which require extra data cannot currently be used. If the particle you have chosen requires extra data, you will get some warnings in the console.

amount
This will both change how many particles are shown, and how long the particles are shown. This and the ‘delay-ticks’ setting control how long a particle effect lasts for.

radius
This controls how far away from the player you'd like the particles to spawn. The maximum radius is currently 20, simply because larger values don't seem to make much sense.

pattern
What shape to spawn the particles in. This can be ‘random’, ‘circle’ or ‘spiral’.

delay-ticks
How long in ticks to wait after spawning a set of particles before spawning another. Increase this value if you want to space out how often particles are spawned. This increases how long the effect lasts for.

replenish-settings​

heal-negative-statuses
If true, heals negative status effects if the player has slept the required hours.

hours-to-heal-negative
The hours of sleep required to heal negative statuses.

heal-positive-statuses
If true, heals positive status effects if the player has slept the required hours.

hours-to-heal-positive
The hours of sleep required to heal positive statuses.

ticks-per-health
Ticks to sleep (including timescaled ticks) to heal the amount specified. 1000 = 1 in-game hour. A full night lasts just under 10 hours. If you set this to 1000, it'll heal the player 9 times by morning regardless of night speed.

heal-amount
The amount healed per interval specified. Can be negative. 1 = half a heart.

heal-awake
Whether the heal effect should be applied to players who aren’t sleeping, but in a world where time is being accelerated.

ticks-per-feed
Ticks to sleep (including timescaled ticks) to feed the amount specified. Similar to ticks-per-health.

feed-awake
Whether the feed effect should be applied to players who aren’t sleeping, but in a world where time is being accelerated.

sleep-rewards.potion-effects​

enabled
Whether to enable potion effect sleep rewards

required-sleep-hours
How many in-game hours a player needs to sleep to be rewarded

show-effect-particles
Whether to show potion effect particles. If shown, particles will be 'ambient'.

effects
The list of effects to applied. Each entry under this should be a valid effect name, and have a duration and amplifier value under it. Amplifier starts at 0 for a base level effect. If an effect name is invalid, a message will print to console while initializing.

essentials-settings
These settings only apply if Essentials is installed​

ignore-afk
If true, AFK players will be considered sleep-ignored.

ignore-vanish
If true, vanished players will be considered sleep-ignored.

---

As is the case with YAML files in general, spacing is important! Don't use tabs or it'll break! Additionally, with text values, if various special characters start the text, it may need to be wrapped with quotes! It's generally safe to always wrap text values with 'single quotes' as the YAML engine will remove them if not necessary when it's re-saved.

​

As of v2.6.0, textual values in the config should now also support PlaceholderAPI. You can mix and match both the built-in placeholders and PAPI placeholders. Built-in placeholders are parsed first, so you can even use them inside PAPI placeholders (for example, progress bars).
{12H}
The 12-hour portion of the server time

{24H}
The 24-hour portion of the server time. A standard 24-hour clock can be setup by putting '{24H}:{MIN}' in the title configuration, color to taste. Even bothered to research and make sure that the clock cycled to 0:00 instead of 24:00, your welcome.

{MIN}
The minutes portion of the server time (padded with a 0 if <10)

{MER_UPPER}
The uppercase meridiem counterpart of 12-hour time, AM or PM

{MER_LOWER}
The lowercase meridiem counterpart of 12-hour time, am or pm

{SLEEPERS}
The number of players currently sleeping

{WAKERS}
The number of non-ignored non-sleeping players

{TOTAL}
The number of players sleeping + non-sleeping, non-ignored players

{TIMESCALE}
The player's username (not always the one that is displayed in game)

{USERNAME}
The player's username (not always the one that is displayed in game)

{DISPLAYNAME}
The player's name as it is shown in game. May contain prefixes, color codes, etc.

{DISPLAYNAME_STRIP}
DISPLAYNAME without colors or formats.

{LEVEL}
The player's current level

{DAYS_LIVED}
The number of days that the player has lived

{REM_HOURS_LIVED}
The number of hours the player has lived after subtracting days

{REM_MINS_LIVED}
The number of minutes the player has lived after subtracting days and hours

{TOTAL_HOURS_LIVED}
The number of hours that the player has lived (total hours, doesn't subtract days)

{TOTAL_MINS_LIVED}
The number of minutes that the player has lived (total minutes, doesn't subtract hours or days)

{TIME_LIVED}
The time the player has lived in days, minutes, and seconds; formatted as '0d, 0h, 0m'

{NICKNAME}
Essentials nickname without the group prefix. Same as DISPLAYNAME if essentials isn't installed.

{NICKNAME_STRIP}
NICKNAME without colors or formats.

{HEALTH}
Shows the player’s health (0-20)

{HEALTH_PER}
Shows the player’s health as a percentage (0-100%)

{HEALTH_BAR}
Generates a 20-segment bar indicating the player’s health, setting the empty portion of the bar to black (avoid using the black color code for this or the bar will appear empty all the time)

{FOOD}
Shows the player’s food level (0-20)

{FOOD_PER}
Shows the player’s food level as a percentage (0-100%)

{FOOD_BAR}
Generates a 20-segment bar indicating the player’s food level, setting the empty portion of the bar to black (avoid using the black color code for this or the bar will appear empty all the time)

---

When using placeholders that can be colored (display name, server name, and server MOTD) you may want to include a color character after the placeholder to prevent it from coloring the rest of your message.

---

Have a suggestion? Use the discussion or github issues to submit your ideas!

Thanks to:

IAlIstannen for the idea to use NMS sleep ticks

_theminerdude_ aka Drathares @ NarniaMC for helping discover and simplify the equation to implement a 'curve' to the night speed.

i0HeX for explaining how I can implement a floating point number as a night-speed multiplier

@Alter-Ego for simply being a recurring user in the discussions and pointing out several bugs and suggestions.

Excellent plugin, I was heartbroken when my last sleep plugin no longer worked for 1.14 but heartbroken no more as SmoothSleep is everything I could possibly ask for and more! Plus, the dev is active and provides good support. Worth downloading, Worth Rating High, Worth donating to

It'd be better to post useful information or errors in the discussion so they can be patched. Reviews only give me this response for correspondence. It's also likely bad practice to use spaces in file names due to shoddy support for it. Camel case or underscores would be ideal.

Thanks! Not too sure what you mean with the hunger bar or what your night feed settings are. It could just be that food depletes naturally then the plugin restores it. Please do post in the discussion if there's some more details you'd like to share!

This is the plugin on my server that gets most player comments, it is brilliant how one player sleeping can fast forward time, leaving other players to roam the underground looking for diamonds without a bed nearby. Works great alongside TimeControl!

Hands down the best sleep plugin I've ever used! Rather than being a vote with a hard yes/no, it lets everyone involved get what they want without feeling like their vote doesn't matter.

Who wants to spend time laying in bed waiting for more people just so you can pass the night and safely keep building?

What if you're hunting slimes and everyone keeps instantly passing the night?

No more! Everyone has a say that actually matters.

The sky speeding by is fun to watch, though can be a bit jarring at first. The improvements made since the plugin first launched give it that 'above and beyond' feel. Most importantly, my members love it.