Reloading the plugin
PaulWAllan opened this issue ยท 2 comments
Hey there,
I'm not sure if you are aware of this or not, but when you reload the command through console, it saves, then reloads the config.yml.
This poses a problem if I want to do any live changes to the config while the server is running, since it overwrites any changes I made on the back end. Since the plugin also saves the file when you take the server down.
Essentially, what I do is a make any changes in a separate config file, take the server down, replace the old config with the new one, and pray that nothing broke that will erase the .yml due to punctuation when I relaunch the server.
I'm hoping that you make reload work like the way other plugins work, where is simply reloads the config without saving it, and make it that it doesn't erase the file if any syntax errors occur.
Thanks in advance,
ALPHA
Are you using 0.6 or 0.7 ?
Version 0.6, has reload command to reload config. (/q reload) If you are using that, saving the config before loading it again is not intended and probably a bug, but I'm probably not going to release any more 0.6 versions, therefore it won't get fixed.
Version 0.7 has its own reload command,(/q reload (-clq)) that can reload individual parts of the plugin, (config, languages, quests) or everything at once.
I can't tell you for sure what is happening with Quester if you are using plain old /reload command, because it's not officially supported by the plugin.
And finally, if you are actually talking about quests.yml, because config.yml shouldn't be changing that often, then 0.7 solves this problem by NOT changing anything right after the server starts, and even creates backup if there are any errors detected. "/q reload -q" is considered a safe way of reloading quests while the server is runnig. Unfortunately, 0.6 has no such tools and it will never have.