Development Assistance how i can change config.yml when my plugin is updated

Discussion in 'Plugin Help/Development/Requests' started by reboxer, Apr 17, 2016.

Thread Status:
Not open for further replies.
  1. Offline


    hello, im here to ask how i can delete and create a new config when a player use a command to download an update of my plugin. for example, Alex use /myupdate to download a new version of the plugin 'MyPlugin', but, config.yml is the same file, without the upgrades in config, and he have to stop the server, delete the config file, and again start the server.

    there any way when the player do /myupdate, the server download the last update and delete config.yml to create a new file, and change the name of the old file to: OldConfig.yml to create a backup?

  2. Offline


    Why create a new config when you can just edit the existing (sorry I probably don't understand exactly what you want)
  3. Offline


    Put a currentversion in the config, and check if it matches the real one
Thread Status:
Not open for further replies.

Share This Page