Add keys to config

Discussion in 'Plugin Development' started by Quantum64, Dec 21, 2013.

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

    Quantum64

    So I know how to sat an existing key in the config file:
    Code:
    // setting an int value
    int integerValue = 8;
    this.getConfig().set("path.to.integer", integerValue);
    But how do I add a new key to the config altogether?
    Thanks - Quantum64
     
  2. Offline

    felixfritz

    Tell me I'm wrong, but I'm pretty sure that you can also add keys that way.
     
  3. Offline

    malandrix_bunny

    Yeah it does
     
  4. Offline

    gomeow

    I believe getConfig().createSection("key") would also work.
     
Thread Status:
Not open for further replies.

Share This Page