Closed ErythroCraft closed 2 years ago
I don't understand the issue.
The player's energy bar is only supposed to be refilled when the night is skipped, it listens for the event. If you wish to allow the night to skip without having to have all players sleeping, I suggest installing a third-party plugin for it.
SurvivalPlus does indeed support BetterSleeping3, I'd try that.
However, if you are able to implement the new feature without disturbing the existing energy system code (the energy system is rather delicate at times) you can create a PR and I'd be happy to merge the pull request. However, please be aware that you MUST be building with the current source from github. Ensure you are up-to-date with the repo before you make any pull requests as we are presently in the process of changing out a lot of deprecations.
Edit: The feature must also be configurable and togglable in config without issue.
That means. No night skipping. All player every time a day.
Example: One player lies down and a second player lies down a little later while the first person is still lying down. 24/7 As self as sitting on chairs.
If you can incorporate the feature in the way I outlined above, I'll be glad to merge the PR. But we will not make the addition because we are much more focused on updating the plugin and finishing existing features like Burn Out Torches and Shared Workbenches
He is working.
He say: JoelGodOfWar I'll add a config for enabling this, and one to set the length of time they need to lay in bed before it happens.
sry
Issue closed, becouse the programmer can not this.
He says, it appears beyond his knowledge.
Hi
The problem is that only one person (at night) can lie down. If there more player with low energy they can not lie down. The addition is intended to allow any player to lie down day or night and replenish energy in the process.
The following function must not be influenced. [It will filling the energy bar after wakeup]. https://github.com/Pixelated-Studios/SurvivalPlus/blob/main/src/main/java/veth/vetheon/survival/listeners/player/EnergyChange.java
part of config.yml
Result 1:
OR
Result 2:
I found an person that can do this. We ask permission to add a few lines via pull request.