·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)
· 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.
· 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.
NEWMessage 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. NEWVariable %neededplayers% to show how many players are needed to start a new day. UPDATEDThe 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.
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 :,)