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...



OnlyOneSleeping 2.0
[​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,385
First Release: Aug 23, 2019
Last Update: Dec 14, 2021
Category: ---------------
All-Time Rating:
4 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings