Sueta

BetterBedTime

1.8

Give effects to player on wakeup from bed and also a custom sleep/wakeup message

·Plugin

bbthometemplate.png

Features:

  • Give effects to player when they get off bed
  • Sends a custom bed enter/leave message
  • One player sleep concept
  • Player displayname variable
  • Completely Configurable


Installation:

  • Add the the build in your plugins folder
  • Reload
  • Enjoy

To-Do:

  • A̶d̶d̶ ̶c̶u̶s̶t̶o̶m̶ ̶e̶f̶f̶e̶c̶t̶s̶ ̶o̶n̶ ̶B̶e̶d̶ ̶L̶e̶a̶v̶e̶/̶E̶n̶t̶e̶r
  • T̶o̶g̶g̶l̶e̶ ̶t̶h̶e̶ ̶e̶f̶f̶e̶c̶t̶s (The effects for specific player can be toggled with help of permission nodes provided)
  • A̶d̶d̶ ̶c̶u̶s̶t̶o̶m̶ ̶t̶i̶m̶e̶ ̶f̶o̶r̶ ̶e̶a̶c̶h̶ ̶a̶n̶d̶ ̶e̶v̶e̶r̶y̶ ̶e̶f̶f̶e̶c̶t
  • A̶d̶d̶ ̶P̶l̶a̶y̶e̶r̶ ̶d̶i̶s̶p̶l̶a̶y̶ ̶n̶a̶m̶e̶ ̶v̶a̶r̶i̶a̶b̶l̶e̶s̶ ̶t̶o̶ ̶b̶e̶ ̶u̶s̶e̶d̶ ̶i̶n̶ ̶c̶u̶s̶t̶o̶m̶ ̶m̶e̶s̶s̶a̶g̶e̶s̶ ̶e̶g̶.̶ ̶{̶n̶i̶c̶k̶}̶
  • M̶a̶k̶e̶ ̶e̶f̶f̶e̶c̶t̶s̶ ̶a̶m̶p̶l̶i̶f̶i̶e̶r̶ ̶c̶o̶n̶f̶i̶g̶u̶r̶a̶b̶l̶e̶
  • A̶d̶d̶ ̶o̶n̶e̶ ̶p̶l̶a̶y̶e̶r̶ ̶s̶l̶e̶e̶p̶ ̶c̶o̶n̶c̶e̶p̶t̶ ̶w̶h̶i̶c̶h̶ ̶c̶a̶n̶ ̶b̶e̶ ̶t̶o̶g̶g̶l̶e̶d̶ ̶i̶n̶ ̶c̶o̶n̶f̶i̶g̶.̶y̶m̶l̶

source code.png

CONFIG.YML
Configuration Version   :  1.7 

 # Custom Message that will be typed when player goes to bed  
 # Supports '&" color codes   
bedentermessage   :  '&2Hey  {  nick  }  , &aAre you going to sleep?' 

 # Custom Message that will be typed when player gets off the bed  
 # [Note] The message will be sent even when players leave the bed before it turns to Day  
 # So adding "GoodMorning" in the message will sometimes make no sense as player will get the message  
 # Even if they leave the bed at night itself  
 # Supports '&" color codes   
bedleavemessage   :  '&2Hey  {  nick  }  , &aDid you sleep well?' 

 # Enable to turn one player sleep concept  
 # Sets the world time to day when just a single player goes to sleep   
OnePlayerSleep   :  false 

 # Add custom effects on player Bed Enter/Leave  
 # Change the following values to true or false to enable disable   
PlayerBedEnterEffects   : 
  
absorption   :  false  
absorptiontime   :  200  #Enter game ticks value 20 ticks = 1 second   
absorptionamp   :  2  #Configure the amplifier(level) of the effects  
 
badluck   :  false  
badlucktime   :  200  #Enter game ticks value 20 ticks = 1 second   
badluckamp   :  2  #Configure the amplifier(level) of the effects  
 
badomen   :  false  
badomentime   :  200  #Enter game ticks value 20 ticks = 1 second   
badomenamp   :  2  #Configure the amplifier(level) of the effects  
 
blindness   :  false  
blindnesstime   :  200  #Enter game ticks value 20 ticks = 1 second   
blindnessamp   :  2  #Configure the amplifier(level) of the effects  
 
conduitpower   :  false  
conduitpowertime   :  200  #Enter game ticks value 20 ticks = 1 second   
conduitpoweramp   :  2  #Configure the amplifier(level) of the effects  
 
dolphinsgrace   :  false  
dolphinsgracetime   :  200  #Enter game ticks value 20 ticks = 1 second   
dolphinsgraceamp   :  2  #Configure the amplifier(level) of the effects  
 
fireresistance   :  false  
fireresistancetime   :  200  #Enter game ticks value 20 ticks = 1 second   
fireresistanceamp   :  2  #Configure the amplifier(level) of the effects  
 
glowing   :  false  
glowingtime   :  200  #Enter game ticks value 20 ticks = 1 second   
glowingamp   :  2  #Configure the amplifier(level) of the effects  
 
haste   :  false  
hastetime   :  200  #Enter game ticks value 20 ticks = 1 second   
hasteamp   :  2  #Configure the amplifier(level) of the effects  
 
healthboost   :  false  
healthboosttime   :  200  #Enter game ticks value 20 ticks = 1 second   
healthboostamp   :  2  #Configure the amplifier(level) of the effects  
 
heroofthevillage   :  false  
heroofthevillagetime   :  200  #Enter game ticks value 20 ticks = 1 second   
heroofthevillageamp   :  2  #Configure the amplifier(level) of the effects  
 
hunger   :  false  
hungertime   :  200  #Enter game ticks value 20 ticks = 1 second   
hungeramp   :  2  #Configure the amplifier(level) of the effects  
 
instantdamage   :  false  
instantdamagetime   :  200  #Enter game ticks value 20 ticks = 1 second   
instantdamageamp   :  2  #Configure the amplifier(level) of the effects  
 
instanthealth   :  false  
instanthealthtime   :  200  #Enter game ticks value 20 ticks = 1 second   
instanthealthamp   :  2  #Configure the amplifier(level) of the effects  
 
invisibility   :  false  
invisibilitytime   :  200  #Enter game ticks value 20 ticks = 1 second   
invisibilityamp   :  2  #Configure the amplifier(level) of the effects  
 
jumpboost   :  false  
jumpboosttime   :  200  #Enter game ticks value 20 ticks = 1 second   
jumpboostamp   :  2  #Configure the amplifier(level) of the effects  
 
levitation   :  false  
levitationtime   :  200  #Enter game ticks value 20 ticks = 1 second   
levitationamp   :  2  #Configure the amplifier(level) of the effects  
 
luck   :  false  
lucktime   :  200  #Enter game ticks value 20 ticks = 1 second   
luckamp   :  2  #Configure the amplifier(level) of the effects  
 
miningfatigue   :  false  
miningfatiguetime   :  200  #Enter game ticks value 20 ticks = 1 second   
miningfatigueamp   :  2  #Configure the amplifier(level) of the effects  
 
nausea   :  false  
nauseatime   :  200  #Enter game ticks value 20 ticks = 1 second   
nauseaamp   :  2  #Configure the amplifier(level) of the effects  
 
nightvision   :  false  
nightvisiontime   :  200  #Enter game ticks value 20 ticks = 1 second   
nightvisionamp   :  2  #Configure the amplifier(level) of the effects  
 
poison   :  false  
poisontime   :  200  #Enter game ticks value 20 ticks = 1 second   
poisonamp   :  2  #Configure the amplifier(level) of the effects  
 
regeneration   :  false  
regenerationtime   :  200  #Enter game ticks value 20 ticks = 1 second   
regenerationamp   :  2  #Configure the amplifier(level) of the effects  
 
resistance   :  false  
resistancetime   :  200  #Enter game ticks value 20 ticks = 1 second   
resistanceamp   :  2  #Configure the amplifier(level) of the effects  
 
saturation   :  false  
saturationtime   :  200  #Enter game ticks value 20 ticks = 1 second   
saturationamp   :  2  #Configure the amplifier(level) of the effects  
 
slowfalling   :  false  
slowfallingtime   :  200  #Enter game ticks value 20 ticks = 1 second   
slowfallingamp   :   #Configure the amplifier(level) of the effects  
 
slowness   :  false  
slownesstime   :  200  #Enter game ticks value 20 ticks = 1 second   
slownessamp   :  2  #Configure the amplifier(level) of the effects  
 
speed   :  false  
speedtime   :  200  #Enter game ticks value 20 ticks = 1 second   
speedamp   :  2  #Configure the amplifier(level) of the effects  
 
waterbreathing   :  false  
waterbreathingtime   :  200  #Enter game ticks value 20 ticks = 1 second   
waterbreathingamp   :  2  #Configure the amplifier(level) of the effects  
 
weakness   :  false  
weaknesstime   :  200  #Enter game ticks value 20 ticks = 1 second   
weaknessamp   :  2  #Configure the amplifier(level) of the effects  

 # To-Do list in Configuration file  

 # • Add custom effects on Bed Leave/Enter - COMPLETED  
 # • Toggle the effects (The effects for specific player can be toggled with help of permission nodes provided) - COMPLETED  
 # • Add custom time for each and every effect - COMPLETED  
 # • Add Player display name variables to be used in custom messages eg. {nick} - COMPLETED  
 # • Make effects amplifier configurable - COMPLETED  
 # • Add one player sleep concept which can be toggled in config.yml - COMPLETED  

 # Join our Discord server for further updates https://discord.gg/2trEDcM  
 # Visit out GitHub page for more info and social links https://deadspark.github.io/MysticalCrafts/  
 # Visit out Website https://deadspark143.wixsite.com/mysticalcrafts

Commands:

  • /bbt (see information about plugin)

permissions.png

Video Preview

YouTube

Developed Under Mystical Crafts Codes

Discord

discordss.png

GitHub

gitshubbb.png

Above links are only support links for the plugin
you can use MysticalCrafts Discord itself for plugin support

IF ANYONE HAS ANY SUGGESTIONS ABOUT MAKING PLUGINS PLEASE POST IT HERE OUR OUR DISCORD AND ILL TRY MAKING IT

Dont use review page for bug reports| Please consider rating and supporting my work :)

Similar projects

Plugin →