[BUG] Reloading configuration breaks the plugin
burdoto opened this issue ยท 0 comments
Describe the bug
Running /jobadmin reload
breaks the plugin in various ways.
For example, when trying to reload to enable auto-work
, the property is never actually enabled.
Also, when trying to reload jobs while auto-work
is enabled, auto-work
gets set to false
internally; the jobs menu shows that work has already been accepted, yet no progress is ever recorded.
To Reproduce
Steps to reproduce the behavior:
- Start server
- Change the picojobs config, e.g. change the value of
auto-work
- Run
/jobadmin reload
- The actual value was not changed
This also applies for the database connection.
Expected behavior
The configuration should be reloaded and the database connection restarted with new parameters.
Screenshots and Logs
unneeded
Software Details:
- Server Software: Paper
- Server Software Version: 1.21.1, build 131
- Plugin Version: 1.0-pre
- Java Version: openjdk 21.0.5