Solved Resetting and Regenerating the Config with a command?

Discussion in 'Plugin Development' started by LandonTheGeek, Nov 16, 2013.

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

    LandonTheGeek

    Hello,

    I have been wondering recently if it is possible to reset and regenerate the config ingame with a command. Is there methods like this? If so, can I see them?

    Thanks.
     
  2. Offline

    drtshock

    reloadConfig()?
     
    HelpfulBeast likes this.
  3. Offline

    LandonTheGeek

    drtshock
    No, no, no. :p I am wanting to reset the config to it's default state when the plugin was first loaded.
     
  4. Offline

    drtshock

    HelpfulBeast There's saveDefaultConfig() which takes the config in the jar and puts it on the server if a config.yml doesn't exist already.

    If you're asking what I think you are then you should just create a method that checks if paths are null / certain values and set them to what you want them to be. But what's the point of a config if you just set them back to default values? :3
     
    HelpfulBeast likes this.
  5. Offline

    LandonTheGeek

    drtshock
    Haha, just if someone wants to reset the values. :p Lol

    Thanks! :)
     
    drtshock likes this.
Thread Status:
Not open for further replies.

Share This Page