Second Config Not Working With Multicraft

Discussion in 'Plugin Development' started by techboy291, May 5, 2013.

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

    techboy291

    Hi,


    So I'm developing a plugin for a server that uses Multicraft. The main config works fine, but my second config, the one that does not use things like getConfig(), does not. As far as I know, Multicraft changes the data folder for all the plugins; unfortunately though, it appears that when you create a second config, it apparently does not pick up on that change; so when I do this:

    Code:
    secondaryFile = new File(this.getDataFolder(), "secondary.yml");
            if(!secondaryFile.exists()) {
                try {
                    secondaryFile.createNewFile();
                } catch(IOException e) {
                    e.printStackTrace();
                }
            }
            secondaryYaml = YamlConfiguration.loadConfiguration(secondaryFile);
    in onEnable() and later make changes to it throughout my plugin, the changes do not take effect.

    Ideas?
     
  2. Offline

    techboy291

Thread Status:
Not open for further replies.

Share This Page