CustomSleeping 1.16.X-1.17.X-1.18.X icon

CustomSleeping 1.16.X-1.17.X-1.18.X -----

Set minimum of players that must be sleeping to change the Day Time, ban worlds, custom messages...




· FIXED : now works in 1.18 servers


·Note: to use this plugin for 1.17.X and below, please, download the version 6.1.
(I'm working to fix this, the newer versions of this plugin will be supporting 1.17.X and below)
----------, Dec 14, 2021

· FIXED: Phantoms no longer spawn if the player has slept in the last 3 days (like Minecraft default spawning).
----------, Nov 14, 2021

· NEW: new config setting added: enableExplosion. If it's set on true, bed can explode in nether and the end.
----------, Jul 12, 2021

· FIXED : the percentage of minimum players sleeping to change the day-time wasn't working with the total current players in the world but with all the online players.
----------, Jul 6, 2021

·UPDATED: CustomSleeping has been updated to 1.17.
----------, Jul 4, 2021

Update notes:

·FIXED: messages to all players are no longer sent to all the connected players that aren't in the same world.
----------, Jul 4, 2021

Update notes:

· NEW: Ability to disable worlds from sleeping. (In config.yml)
----------, Jul 3, 2021

Update notes:

· NEW: players can't sleep when doDaylightCycle is set to false (Game Rule) (Configurable).
· NEW: send custom messages when the player can't sleep.
----------, Jul 3, 2021

Update notes:

· UPDATED: plugin is now working on +1.16
·
UPDATED: config file.

· FIXED: players cannot longer sleep with monsters nearby.
· FIXED: players cannot longer sleep even if they were too far away from the bed.
· FIXED: the percentage of players required to sleep is now working.
· FIXED: players cannot longer sleep in the NETHER & END.

·REMOVED: ActionBar API dependency.
·REMOVED: displays custom Title or Subtitle.
----------, Jul 2, 2021

FIXED Bug: When ActionBar Message is enabled, an error appears in the console when the player clicks the bed to sleep.
----------, Sep 2, 2019

NEW Message that's displayed when a player sleeps and MinimumPercentage is enabled in the config file. The message shows the players that are currently sleeping and the needed players.
NEW Variable %neededplayers% to show how many players are needed to start a new day.
UPDATED The Config file has been updated with a new structure, to make it easier to config. (New config tutorial is available in the plugin's post.
----------, Sep 2, 2019

Update Notes:
· NEW Ability to sleep during thunderstorms and it'll stop raining.
----------, Aug 31, 2019

Update Notes:
FIXED Bug: When the player clicks the bed, it automatically changes the Day Time.
----------, Aug 31, 2019

[​IMG]

OnlyOneSleeping
gives you the possibility to set a minimum of players who must sleep to start a new day, instead of the default Minecraft's minimum (all the players at the same time).

Installation:
· Download OnlyOneSleeping.jar.
· Download ActionBarAPI.jar
· Drop them in your server's plugin file.
· Run the server
· Modify the config file if needed.
· Enjoy!

[​IMG]

· Set how many players are needed sleeping to start a new day.
· (Configurable) 1 player needed or a percentage of currently online players.
· Ability to enable message with ActionBar instead of a chat message.


[​IMG]

You can enable/ disable messages via Chat or via ActionBar.
Message: true
ActionBar: true

Modify the duration of the ActionBar in ticks. (20 ticks = 1 second)
ActionBarDuration: 60

You can modify every message with color codes too.
MessageWhenPercentageOfPlayersAreSleepingAtTheMoment: "&c%totalplayers% &eplayer went to sleep. Have a sweet dream!"
MessageWhenOnePlayerWentToSleep : "&c%player% &ewent to sleep. Have a sweet dream!"

Variables available: %player% (The player who slept)and %totalplayers% (the number of players that slept)

You can change the percentage of players that must be sleeping to start a new day instantly. (Default disabled, only 1 player needed, change the value to true and then change the number of the percentage)
AllowPercentageMinimumPlayersToSleep: true
PercentageOfPlayersSleepingAtTheMoment: 50

In this example, the percentage is enabled and 50% of the current players online must sleep. You can change it with any value between 0 to 100. If you have 100 players connected, 50 players must be sleeping.


[​IMG]

· Ability to disable worlds where the minimum number of players will not affect, it will work as the default game.

· Ability to enable message with ActionBarAPI instead of a chat message.

· Ability to set custom ticks in the config after a player interacts with the bed to start a new day.

Tell me new features that you would want to have in the plugin!


[​IMG]


I'm still learning Java, this is my second plugin :). I know maybe it's useless but I'm working to improve to bring you better plugins in the future. :) Please, tell me ideas, bugs ... I'll be pending. :D Thank you!
By the way, I'm sorry for my bad English :,)
----------, Aug 23, 2019

Resource Information
Author:
----------
Total Downloads: 10,384
First Release: Aug 23, 2019
Last Update: Dec 14, 2021
Category: ---------------
All-Time Rating:
4 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings