Better Beds

  Made in Germany with love (and beer)

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

 
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.
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 default messages language
default-language: en
# 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
# How long in ticks it takes to pass the night (above 0, which is instant, it uses a transition).
# Set to -1 to disable the transition animation.
nightSpeed: 100
# Whether or not ignored players should help with the sleeping percentage if they decide to sleep
ignoredHelp: true
# If set to true this will reset the phantom spawn chance for all players in the world when skipping the night
# If set to false it will only reset them for the players that slept in the bed (vanilla behaviour)
resetPhantomsForAll: false
# The Type defines who should get the message.
# Possibly values:
#   noone - Don't display the message to anyone
#   sleeping - Only players who lye in a bed
#   world - Every player who is in the same world
#   server - Every player on the server
# The location defined where the messages gets displayed.
# Possible values:
#   chat - As a chat message
#   title - As a title
#   actionbar - In the action bar
notifications:
  sleep:
    type: "sleeping"
    location: "chat"
  leave:
    type: "sleeping"
    location: "chat"
  wake:
    type: "world"
    location: "chat"
  notify:
    type: "sleeping"
    location: "chat"
  notifyOnSingle:
    type: "sleeping"
    location: "chat"
 Source
Dev Builds
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!
My Resources
This resource is distributed without any warranty or liability by the author.

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files