Sueta

BetterBeds

0.6.1

Sleep away the night with many players more easily.

·Plugin

Made in Germany with love (and beer)
BetterBeds is a plugin with which you can sleep away the night more easy! It is heavily inspired by the Morpheus sleep mod known through FTB and CrackPack.

Updated 1.0 Dev Builds for 1.13+ are available here: https://ci.minebench.de/job/BetterBeds/

v0.6.0 Update-Notice: Please take a look at the changed config format!

It has the ability to ignore online staff members from the sleeping mechanic! (E.g. while they are afk or vanished)

When a player sleeps in a bed at night it calculates how many players are sleeping in a world and compares it with a ratio you can configure. It also has the ability to only start taking effect if more than a configured number of players are in the world.

If you want you can also configure a speed at which the night should get skipped! It will speed up the cycle with a nice animation of the sky!

Also there is a functionality for "ghost" players who block the skipping of the night if they are not sleeping.

You can also set notification messages on how many players are already sleeping, how many it needs. Also you can greet the players when they wake up!

Donations

Programming is time intensive and I would really appreciate your support!
So if you can afford it or make commercially use of this plugin feel free to buy me a beer.
Find all possible ways to support me on my tip page.


Permissions

  • betterbeds.sleep - Gives user ability to get noticed by the plugin.
    (Default: true)
  • betterbeds.ignore - Users with this permission don't get calculated when they are online and don't stop the skipping of night.
    (Default: op)
  • betterbeds.ghost - Makes the user a ghost who stops sleeping away the night.
    (Default: false)
  • betterbeds.cmd.reload - Gives permission to the /betterbedsreload command which reloads the config from the file
    (Default: op)

Config

# the number of players which have to sleep independently from the percentage
# if this is above the playercount in a world all players in the world have to sleep
minPlayers: 2
# the ration of players which have to sleep
# set it to 1 or 100% to use the plugin and normal sleeping behavior but with the benefit of ignored
sleepPercentage: 0.5
# Speed of time for a smoother transition to the morning. Set to 0 to disable this feature.
nightSpeed: 300 
# use {player} for the sleeping players name
# use {sleeping} for the count of the sleeping players
# use {online} for the online playercount
# use {percentage} for the percentage of sleeping players
# use {more} to get the count of how many more players have to sleep to skip the night
#
# The Type defines who should get the message.
# Possibly values:
#   NOONE - Don't display the message to anyone
#   SLEEPING - Only players who lie in a bed
#   WORLD - Every player who is in the same world
#   SERVER - Every player on the server
msg:
    ghost: "You may not rest now, there are ghosts nearby"
    sleep:
        text: "{player} is now sleeping. {sleeping}/{online} ({percentage}%)"
        type: "SLEEPING"
    leave:
        text: "{player} is no longer sleeping. {sleeping}/{online} ({percentage}%) {more} more required!"
        type: "SLEEPING"
    wake:
        text: "Wakey wakey, rise and shine... Good morning everyone!"
        type: "WORLD"
    notify:
        text: "{sleeping} players have gone to bed. Skipping the night!"
        type: "SLEEPING"
    notifyOnSingle:
        text: "{player} has gone to bed. Skipping the night!"
        type: "SLEEPING"

Source

Github - https://github.com/Phoenix616/BetterBeds/

Dev Builds

Minebench.de Jenkins - http://ci.minebench.de/job/BetterBeds/

Todo

  • Fix recalculating on player quit.
  • Fully implementing ghosts
  • Fix waking animation
  • Add config for who is getting which messages
  • Add ability to show how many players have to sleep til dawn
    All implemented!
  • Rewrite for 1.0 release. See development builds.

My Resources


This resource is distributed without any warranty or liability by the author.

Similar projects

Plugin →