-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save players before plugin disabling on server shutdown #9679
Save players before plugin disabling on server shutdown #9679
Conversation
I also wanted to say that this allows the |
Fixes #6911 |
This is 100% not something that can be done mid patch release, this is more a major change in behavior in which needs to be done on a major release with proper testing to ensure that we don't break anything; This is how this logic has worked for a decade, and while you can maybe argue that it's weird, it is a side-effect of various dozen other choices in the codebase over a decade which has left us here |
So you say this could be added but this is more likely something for a new major MC version? |
Yea, this logic would be desirable in the long run imo, it just Given that the quit/onDisable stuff has worked like this for years and most logic that relies on this logic deals with rather crucial parts of plugins (e.g. data saving) changing this mid version is rather terrible for plugin developers to update. |
#6911 suggests to add a config option. Would that, assuming this is getting merged at some point, be a feasable option until a hardfork? Or is this something that better waits until the hardfork? |
a config option was proposed for /stop to boot everybody, but there is no expectation that it would change event behavior, the server has stopped ticking and many things relied upon that in order to fire events, etc; If we're going to change the behavior around this, it should just be changed without a config option, rather than having such a dangerous setting sitting around with massive side-effects |
I guess that would be an option. But probably only if it's disabled per default, logically. On the other side if you enable it and have spigot plugins that rely on the old system it breaks again. So maybe an unsupported option until Hardfork? |
ea7e369
to
a098559
Compare
4e2b781
to
07d1bff
Compare
07d1bff
to
1ac2eb1
Compare
1ac2eb1
to
fb8bed9
Compare
For reference: https://discord.com/channels/289587909051416579/555462289851940864/1147468559887384586
If this behaviour is intended, feel free to close this PR, but as written in that message, I think
/restart
and/stop
should follow the same order of operations when disabling plugins and saving players.