I've made a plugin called KygekJoinUI. You can check it out here ---> https://poggit.pmmp.io/p/KygekJoinUI. But what will happen if I update the plugin with a new config.yml? Will it cause problems?
The old config.yml doesn't change in plugin_data. If I add new features, this will cause problems. How to solve this?
umm delete the one in the plugin data?? or mayabe put a version indicator in ur config and put the real version in ur main and check if their equal if not tell them to upgrade their config by deleting it
But how? What code should I put? And how to make the 1.0.0 config.yml updated? I haven't put any config version.
PHP: $cfgversion = $this->getConfig()->get("version");$mainversion = 1.1;if ($cfgversion !== $mainversion) { $this->getLogger()->error("Old Config Detected Please Delete Ur Config and a new version should generate!")} do this on onEnable
Yes it will. Remove your config.yml on your plugin_data\yourplugin folder and start the server again.
Sorry but I've found a way to update the config.yml without the users to delete theirs manually. And the old config.yml will be created as config_old.yml first.