Configuration Checking Function not working...

Discussion in 'Plugin Development' started by randomman159, Nov 5, 2011.

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

    randomman159

    Hey guys, just want some quick help, i created a function, which turns out to not work AT ALL. The values are always being set back to default. Could any of you take a look and tell me what im doing wrong?


    Code:
    protected void CheckProperty(ConfigurationNode config, String node, Object defaultValue)
        {
            if (config.getProperty(node) == null)
            {
                config.setProperty(node, defaultValue);
            }
        }
     
  2. Offline

    DomovoiButler

    yeah well...more info please...maybe post your whole code?
     
  3. Offline

    iffa

    Errm, why are you

    1. Calling ConfigurationNode your config
    2. Even using the old Configuration

    And you need to save if you're not doing that.
     
Thread Status:
Not open for further replies.

Share This Page