✦ Description
Customize your night skips with a set sleep threshold, animation, and voting. All customizable in the config.

✦ Features
- Skip the night with a percentage of players sleeping.
- Skip the night with a configurable voting system.
- Animate skipping the night.
- Fully configurable chat messages, with support for color codes or Minimessage.
- Support for multiple worlds with independent sleep cycles and tracking.
- Support for lying down with GSit to sleep.
- Support for ignoring Essentials AFK players.
✦ Permissions
- sleeper.sleep - Allow the use of '/sleep' to access it's sub-commands.
- sleeper.vote - Allow voting with '/sleep yes' and '/sleep no'.
- sleeper.reload - Allow the use of '/sleep reload' to reload the config.
- sleeper.ignore - Allow the use of '/sleep ignore' to be ignored for sleep.
- sleeper.data - Allows the use of '/sleep debug' to see debug information.
✦ Commands
- /sleep - Main command, which contains all the subcommands: yes, no, votes, ignore, debug, reload (sleeper.sleep). The ignore subcommand can take two optional paremeters: /sleep ignore
<True/False>
✦ Config/Setup
An up to date config is available here.
Config Values:
Plugin settings
- CheckForUpdates - Toggle update checking by checking the Spigot api.
- FormattingType - Switch between "minecraft" and "minimessage" to format messages with color codes or minimessage.
Main settings
- UseAnimation - Toggle if skipping is animated or not.
- SkipPercentage - Percentage of online players sleeping to skip the night at.
- SkipSpeed - Speed for the skip animation.
- DelaySleep - Toggle a delay for sleeping after entering a bed.
- DelaySeconds - Set the above delay in seconds.
- ActionbarMessages - Toggle sending messages through the action bar.
- PersistentSleepInfo - Toggle keeping sleep info messages on the actionbar for the below time.
- PersistenceTime - Time to show sleep info on the actionbar in seconds, for the above setting.
- DayTime - The time considered morning. Nights will be skipped up to this time.
- NightTime - The time considered the the start of the night. Allows voting or sleeping with GSit.
- BroadcastSleepInfo - Toggle broadcasting sleep info to everyone instead of just the sleeper.
Voting settings
- VoteSkip - Toggle skip votes.
- YesMultiplier - Multiplier for yes votes to boost or nerf their value.
- NoMultiplier - Multiplier for no votes to boost or nerf their value.
- SkipVotePercent - Percent for skipping based on a vote. Calculated as yes votes minus no votes, divided by the amount of online players.
- BlockBedsAfterVoting - Blocks entering a bed after you've voted. Also automatically votes yes when entering a bed.
- BossbarVoteCount - Display the current vote on the bossbar.
- ActionbarVoteCount - Display the current vote on the actionbar.
- SendVotesOnStart - Toggle sending the vote options when a vote starts.
- StartWithoutSleep - Allow starting votes with the vote commands themselves.
- MaxVoteTime - The time in seconds for the below setting.
- LimitedVoteTime - Limit voting time to the above setting.
Plugin integration settings
- GSitPoseToSleep - Toggle lying down with GSit counting as sleeping.
- IgnoreAFKPlayers - Toggle ignoring players AFK with Essentials.
After these config values there are configurable messages used by the plugin. The sleep info and skip messages can be disabled by setting them as blank in the config.
✦ Issues/Problems
Please report any issues or problems on the github issue tracker.
✦ Links
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 | ||||
| 23h ago | 1 |
- Dropped the Minimessage Bukkit platform layer due to it being abandoned and breaking messages. As a result a server with Minimessage is required now.
- Fixed some bugs including divide by zeros in sleepinfo messages and vote skips not working when animations were disabled.
- Built on 26.1.2.
- Java 21 is now the minimum Java version due to latest minimessage requirements.
- Fixed bed exiting and gsit sleepinfo messages not replacing %percent_needed% placeholders. Thanks MaximumWoahverdrive
- Updated dependencies.
- Added a %percent_needed% placeholder to show the percent needed for sleep. (Thanks to flakysalt for the contribution)
- Added the setting AutomaticStart to enable starting a vote automatically when it is night time.
- Updated the GSit api integration to work with GSit 3.0.0
- Removed integration with the AFKPlus api. AFKPlus can be set to work with Essentials, so enable that to keep functionality.
- Fixed the integrations loaded message to correctly realize if none were found.
- Updated Minimessage dependency.
- Added support for Folia servers.
- Added config options "DayTime" and "NightTime" to set the time considered as morning and the time that is considered the start of the night.
New config options will not appear in an existing config, so the config should either be recreated or the new entries manually added. The latest config can be found [here](https://github.com/hraponssi/Sleeper/blob/main/src/main/resources/config.yml).
- Adds integration with AFKPlus (Thanks @Rinary1) and Essentials to ignore afk players for night skipping. This can be toggled with the new config option "IgnoreAFKPlayers".
New config options will not appear in an existing config, so the config should either be recreated or the new entries manually added. The latest config can be found [here](https://github.com/hraponssi/Sleeper/blob/main/src/main/resources/config.yml).
- The sleep info action bar message can now be configured to persist for an amount of seconds, by default 30 seconds. It will automatically be cleared in the morning if a skip doesn't happen so the time can be set as the whole night as well.
- More skip and voting messages can now be disabled by setting them as empty "".
- Added a config option to send messages through the actionbar.
- Fixes a crash on startup if GSit isn't installed.
- Added support for formatting chat messages with minimessage. Thanks @Rinary1
- Added a config option for showing vote status on the actionbar. Thanks @Rinary1
- Added a config option for integrating with GSit so lying down counts as sleeping.
- Fixed a bug where an extra help message was sent for some commands if you didn't have permission.
- Changed the way time is counted to possibly be more reliable.
- The sleep command now has tab completion.
- More messages can now be edited in the config.
- The plugin now checks for updates on startup, by checking the spigot api. This is printed in the console and can be disabled in the config.
- Builds against 1.21.7.
- Sleeping can be delayed with the config option "DelaySleep", which delays sleep by the number of seconds given as "DelaySeconds".
- Added a placeholder %count_needed% to show how many players are needed to skip the night.
- Votes can now be time limited with the new config options MaxVoteTime, LimitedVoteTime and message VoteTimedOut.
- Console can now run the ignore and reload commands.
- For console use ignore can now take a player name to ignore someone else, or a player name and state to force a specific state. For example _/sleep ignore Hraponssi false_ to force removal from the ignore list regardless of if they were in it or not.
- Random messages are now the same for all players.
- The plugin is now built for Java 17 instead of 8 so it can use new features.
- Night skip messages are now as a list, so you can have multiple to have one randomly chosen from. Old configs should stay compatible.
- Some cleaning up of the code that shouldn't affect functionality.
- Added a note to the debug command if you're ignored in gamemode spectator or creative.
- The sleep percentage is capped at 100%, in case ignored players sleep.
- Check for permissions when running subcommands.
- Allow disabling some messages by setting them as blanks in the config. (SleepInfo, Nightskip, SkipByVote)
- All commands have been moved to subcommands of /sleep
- Voting commands now check if voting is enabled before starting a vote
Note: The message SleepHelp has been renamed to SleepHelpList to reflect the change in the message format. The new format has the message followed by a list of subcommands the player has permissions for.
- Changed lists from using player objects to UUIDs to avoid potential memory leaks.
- Tested working on 1.20.2.
- Votes can now only be started if the world time would allow for sleeping in a bed.
- First modrinth upload.