1.12.2 Config auto-save.

Discussion in 'Spigot Plugin Development' started by XATuKO, Feb 6, 2020.

Thread Status:
Not open for further replies.
  1. Hello. Trying to create auto-save config, but it doesn't work.

    Code (BukkitRunnable):
    CauldronTP extends JavaPlugin.
    Code (Java):
    ins returns CauldronTP.

    Default config:

    When plugin saved config, I see this:
    settings: {}
    data: {}

    Can someone help me, please?
  2. You forgot to add your code.
  3. What code? In which I change something in the config?
    I did not change anything there until autosave.
  4. drives_a_ford


  5. Isn't it copy a config from .jar to plugin's folder?
  6. Yes, isn't that what you want?
  7. Try this
    Code (Java):
    (Put it into your public void onEnable)
  8. What do you want? Your question isn't clear and there's no code provided. What do you mean by auto saving config?
  9. Solved.
    Now using custom config file.
Thread Status:
Not open for further replies.