PicoJobs

PicoJobs

13.1k Downloads

[BUG] Reloading configuration breaks the plugin

burdoto opened this issue ยท 0 comments

commented

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:

  1. Start server
  2. Change the picojobs config, e.g. change the value of auto-work
  3. Run /jobadmin reload
  4. 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