Problem/Bug How to stop a config from removing itself..?

Discussion in 'Plugin Help/Development/Requests' started by Scorpionvssub, Dec 2, 2015.

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

    Scorpionvssub

    When i let the plugin "save" stuff it removes other things completely :confused: just with saveconfig();
     
  2. Offline

    Firestar311

    Can you paste your main Plugin Class?
    The onEnable() method should have
    "this.saveDefaultConfig()"
    And if you have
    this.saveConfig()
    In your onDisable() method, it will change the config when the plugin is disable to that which is in the memory. Which is whatever the config was when it started.
     
  3. Offline

    Scorpionvssub

    Main class is the whole plugin x) i use
    getConfig().options().copyDefaults();
    saveDefaultConfig();

    and when i set a spawn i use saveconfig();

    Which is a way i always use
     
Thread Status:
Not open for further replies.

Share This Page