Config option to stop server if plugins failed to load #10562
Replies: 7 comments
-
Is this only during startup, what in the case that a plugin is unloaded by plugman for example, or doesn't load after a reload? |
Beta Was this translation helpful? Give feedback.
-
both reloading and plugman are already unsupported so it doesnt matter |
Beta Was this translation helpful? Give feedback.
-
I would prefer to have this for all plugins by default, maybe with some startup option as opt-out or so |
Beta Was this translation helpful? Give feedback.
-
We manage this with RequiredPlugins. Players cannot connect if the required plugins are not enabled. |
Beta Was this translation helpful? Give feedback.
-
Is there a reason why a plugin can't just handle this themselves? Listen to the load event and checking if all plugins are enabled. It's such a simple thing for a plugin to handle, I don't know if its worth adding it. |
Beta Was this translation helpful? Give feedback.
-
and if that plugin somehow happen chance blows up? |
Beta Was this translation helpful? Give feedback.
-
We have recently replaced RequirePlugins with PluginControl. We monitor server restart, to ensure that PluginControl doesn't "blow up." If one allows auto-restart, it is straightforward to script to check that it starts with whatever logic is desired. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem?
If a critical plugin fails to load, such as a claim protection plugin, but the server continues to start anyway and allows players to join this would put the server in a state where players are able to do things they otherwise wouldn't
Describe the solution you'd like.
A "required-plugins" config option which has a list of plugin names which the server will stop in the event they fail to load
Additionally it would be nice to just specify "*" to require that all plugins load
Describe alternatives you've considered.
I have attempted to put together a PR for this but I have ran into issues with the config not yet being available during paper plugin bootstrapping, if someone wants to help with this, that would be great
Other
No response
Beta Was this translation helpful? Give feedback.
All reactions