Config Problem

Discussion in 'Plugin Development' started by piggykiller100, Feb 22, 2015.

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

    piggykiller100

    I made a plugin that will make a new section in the config named the senders name, but it doesnt work
    heres what i use:
    getConfig().createSection(target.getName());
    please help
     
  2. Offline

    TheEntropy

  3. Offline

    Qwertyness_

    If there is going to be a value right away, use getConfig().set(target.getName() + ".somField", value) instead. Also, it could just be that you aren't calling saveConfig() afterwards which would mean the value never gets pushed to the actual file.
     
  4. @piggykiller100 Did you save the config after you created that section?
     
  5. Offline

    piggykiller100

  6. Offline

    TheEntropy

Thread Status:
Not open for further replies.

Share This Page