Saving the config

Discussion in 'BungeeCord Plugin Development' started by bloodsplat, Feb 23, 2013.

  1. When using ProxyServer.getInstance().getConfigurationAdapter().getString("myplugin.test", "TestString"); the default value "TestString" gets loaded by the plugin but doesnt save to the BungeeCord config.yml. Is there a command I am missing or should i be overwriting the config.yml file myself?

    Ive tried setting an instance of it aswell but this also doesn't save any of my values to the config.
  2. md_5

    Administrator Developer

    Works for me.
  3. Weird even this doesn't seem to do anything. What am I missing :(

    Code (Text):
    import net.md_5.bungee.api.ProxyServer;
    import net.md_5.bungee.api.plugin.Plugin;
    public class ChatRelay extends Plugin{
        public void onEnable() {
            ProxyServer.getInstance().getConfigurationAdapter().getInt("", 5);
  4. md_5

    Administrator Developer

    Bug with using '.' sections, lemme fix.

    EDIT: Fixed
    #4 md_5, Feb 23, 2013
    Last edited: Feb 23, 2013
    • Like Like x 1
  5. Your the best :D thanks!