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 →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta