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!
· 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.
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)
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.
· 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!
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.
Thank you!
By the way, I'm sorry for my bad English :,)