Flags disabled by default "?prevent-mob" reverting to disabled on restart
PIE-yt opened this issue ยท 3 comments
Maybe related to #1091
Flags set disabled with the "?" prefix in the config.yml are reverting to disabled after being "/ps toggled" to enable them on server restart.
The entries in the database for the "flags" key appear to be correct and are unaffected by a restart: {"disabledFlags":["prevent-teleport","prevent-animal-spawn","prevent-entry","protect-inventories","farewell-message"]}
However the field behaves as though flags not listed in the database are disabled once the server restarts.
is the "/ps info" for the database entry above, notice that "prevent-mob-spawn" and "remove-mob" behave as disabled though not present in the database.
Using "/ps toggle" again to change a single flag on a field after a restart causes all disabled by default flags to be readded to the database.
Flags not disabled by default such as "farewell-message" have their state applied properly on server restart.
Hope this explanation makes sense.
Thanks very much for your time.