Sueta
SL

SleepBetter

1.0.0

sleep, bed, skip night, sleep percentage

·Plugin

Simply skip the night (or thunder) if a defined percentage of players in the overworld are currently in bed.

Setup

On startup, a configuration file will be generated in the plugins folder (SleepBetter/config.yml) which looks like following:

# Weather or not to enable the sleep-on-percentage function of this plugin   
enable   :  true 

 # How many players need to be in bed.  
 # Example:  
 #   0.5  -> 50% -> at least 5/10  
 #   0.75 -> 75% -> at least 8/10  
 #   and so on...   
part   :  0.5

Just enter your percentage you want to set and everything is ready to go. Just insert /reload into th console and the configuration will be set.

Inspiration

This plugin was originally inspired by Xferno2/Good-Night-Sleep-Tight . I actually palned to fork his repo and do a pull-request with changes to be made, but at the end I thought it is easier to create an own version of it. This plugin may contain some of Xferno2's code structure because it is heavily inspired by their project.

Similar projects

Plugin →