BetterSleeping icon

BetterSleeping -----

Makes sleeping in multiplayer useful and fun!




[​IMG]

[​IMG] [​IMG] [​IMG]

BetterSleeping
is a Spigot plugin that guarantees a better sleeping experience for Spigot servers! It aims to improve sleeping in multiplayer by only having a certain percentage of players sleep. BetterSleeping strives to be the best sleeping plugin out there by providing great support, offering the most features and great customizability.

BetterSleeping is well documented and easy to configure. Take a look at the wiki. If this wiki does not satisfy your admin needs, feel free to join the BetterPlugins Discord server to get help or submit a suggestion. You can contact me however you want: In a GitHub issue, discussion section or through a PM on the forum. However, I am most active on Discord and other staff may be able to assist you over there as well.

This is the free version of BetterSleeping. The premium version was released to make sure I can keep putting my time in this awesome project. All core features will always be a part of the free version!

Outdated but awesome showcase (v2, before the complete rewrite)

[​IMG]
Customizability is very important to us. Check the wiki to see all options and commands.

Interested in a customisable prefix and/or command GUIs? Check out BetterSleeping Premium! The free version now uses a shortened prefix by default: [BS4].

New in BetterSleeping4! The premium version can now enable a bossbar that serves as a clock and allows automatically setting time to day when a player joins an empty world!

Shared features:
  • Set a percentage of minimum players in a world that need to sleep. Or set a static number that will always be the same.
  • Time goes by faster when enough players are sleeping or time is set to day after a delay when enough players sleep. It's totally up to you.
  • Multiple languages are supported for most messages. Changes are, your language is already supported! Check a complete list of all supported languages on GitHub (click).
  • New: Per-world settings! Disable BetterSleeping in one or more worlds or use different BetterSleeping settings in specific worlds
  • There is singular/plural support built into the language system!
  • Disable any BetterSleeping message you don't need!
  • Reload BetterSleeping configuration without having to restart/reload your server with /bs reload
  • Phantoms can be entirely disabled!
  • Give buffs (potion effects) to players that slept! Also non-sleepers can get potion effects (referred to as debuffs).
  • Bypass permissions allow a player to be ignored by the required sleeping count. These players can sleep if they want to. Check the wiki to learn how to give these permissions.
  • Essentials support! Afk and vanished players are ignored by the required sleeping counter by default.
  • Built-in GSit support
  • New: Sleeping animations
  • New: Sleep through a command: /bs sleep
And even more features will be added in the future. Make sure to share your ideas with us. Frequent requests will be added in future updates!

BetterSleeping v4 sample (coming soon)


[​IMG]
BetterSleeping has a developer API! Check the dev API wiki for all info.

When using Maven, simply add the following to your pom.xml:
Code (Text):
   <repositories>
       <repository>
           <id>jitpack.io</id>
           <url>https://jitpack.io</url>
       </repository>
   </repositories>

   <dependency>
       <groupId>com.github.Nuytemans-Dieter</groupId>
       <artifactId>BetterSleeping</artifactId>
       <version>v4.0.0</version>
   </dependency>
Make sure to use the latest version (you can check this on GitHub releases).

You can simply listen to BecomeDayEvent the same way you listen to default Spigot events.
To get an API instance, make sure you are (soft-)depending on BetterSleeping and get it as follows:
Code (Java):
BetterSleepingAPI BsApi = BetterSleeping. getAPI ( ) ;
Current API features:
  • BecomeDayEvent
    • Get the cause: natural (by not sleeping), sleeping, other (time set or other plugins)
    • Get the world that became day
    • Get the players that were sleeping in that world
    • Get the players that were not sleeping in that world
  • Open BS4 API
    • Mark a player as sleeping
    • Mark a player as waking up
    • Check if sleeping is possible in a world (takes time & weather into consideration)
    • Check if BetterSleeping is enabled in a world
    • Get sleeping information about a world

[​IMG]
There is a complete wiki that contains information about commands, permissions and configuration. You can take a look at the wiki here.

For support, you can:
[​IMG]
[​IMG]

[​IMG]
Resource Information
Author:
----------
Total Downloads: 339,935
First Release: Sep 14, 2018
Last Update: Jul 10, 2022
Category: ---------------
All-Time Rating:
67 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings