Open GameSox opened 2 days ago
1.21.1 version
First off,
uncommand
effect, it is called COMMAND_UNDO
, so please try that instead.plugins/BodyHealth/data/bodyHealth.yml
. This happens on start, long before any player joins. When a player joins later on, only their "BodyHealthStates" are initialized and set to their corresponding state. When a player had 16% health on their head when logging off, their head's BodyHealthState would be changed from null
(= no state, essentially) to DAMAGED
. Effects are then applied based on these states.I've nonetheless tested this behavior:
Results (after restart):
...seems good to me, but let me know if something's off here, no idea what you are expecting.
I've also tested the other states with the same results, so nothing wrong for me.
If you're still experiencing issues, please try to further explain the behavior you expect and provide a more detailed list of steps to reproduce your issue, thank you :)
Upon further testing, I found a bug that only occurs when COMMAND_UNDO
is used;
When the system is disabled and the effects of all players are removed, a really short delay (0.15s) is used. This was added to ensure players are already respawned when messing with effects, but due to an oversight, it is also used on shutdown as of version 2.0.0 which leads to a red message in console and the effect not being removed correctly as tasks cannot be executed after a delay, when the plugin is shutting down. I have now changed this behavior and I will be releasing an update with this soon.
It's probably not what you meant, as it occurs on shutdown, not upon restart, but still letting you know this here early, just in case
Upon further testing, I found a bug that only occurs when
COMMAND_UNDO
is used;When the system is disabled and the effects of all players are removed, a really short delay (0.15s) is used. This was added to ensure players are already respawned when messing with effects, but due to an oversight, it is also used on shutdown as of version 2.0.0 which leads to a red message in console and the effect not being removed correctly as tasks cannot be executed after a delay, when the plugin is shutting down. I have now changed this behavior and I will be releasing an update with this soon.
It's probably not what you meant, as it occurs on shutdown, not upon restart, but still letting you know this here early, just in case
Said bug is now fixed in v2.0.1 together with another one I came across earlier
Maybe that fixes your issue too
There have been 2 fixes and 1 improvement since you submitted this, that could be related to whatever went wrong for you. Please see if v2.0.1 or v2.1.0 fixes your issue and let me know if it doesn't
Please confirm you are using the latest version and you have read and understood the configuration.
What happened?
When i restart the server all the body changes to Full, so if you have commands added (command hud add / uncommand hud remove ) when you restart you will still have the commands executed without using uncommand
Steps to reproduce the issue
restart server
Screenshots/Videos (you can drag and drop files or paste links)
No response