Imprex-Development / orebfuscator

Orebfuscator - High-Performance Anti X-Ray plugin
https://modrinth.com/plugin/orebfuscator
GNU General Public License v3.0
119 stars 26 forks source link

Reload command to refresh config file changes without having to restart the server. #358

Open WildFyr16 opened 5 months ago

WildFyr16 commented 5 months ago

Description

the ability to run "/orebfuscator reload" or "/ofc reload" to reload any changes made to the config without needed to restart the server. Quite a few plugins have a command like this to make development and changes a lot easier.

Proposed Behaviour

Running the reload command, the plugin will add any changes to the config file to the server.

Extra Details

No response

Ingrim4 commented 4 months ago

I don't think I will ever have the time to add this as a feature since the whole plugins is async and I would have to rewrite most of. I I would need to somehow change the config without weird anomalies since the config at the start of an obfuscation task could be different from the one at the end (and I don't want to deal with that). Another option that is working right now is disabling and then enabling the plugin again either with the servers /reload command or by using some plugin manager that let's you reload a single plugin on the fly like PlugManX