- 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.
- 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.
- 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.