Can't fix this FileConfiguration bug.

Discussion in 'Plugin Development' started by OHQCraft, Aug 1, 2014.

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

    OHQCraft

    I have this bug, PlayerData.getKit() always returns null, even though I believe the value is set. The problem is, is that the config is not actually saving although I used saveConfig().

    This is the PlayerData.java class: http://pastebin.com/EqKd3mDi.
    Here is the YMLFactory.java Util I used to make the config/datafile: http://pastebin.com/ZHvrDs7s

    This is probably something stupid I already know about but just have trouble spotting. -.-

    Thanks.
     
  2. Offline

    Totom3

    Mhm idk did you try this :

    Code:java
    1. public boolean getKit(String kitID) {
    2. return dataFile.getConfig().getBoolean("kitdata."+kitID);
    3. }


    Also did you check in the .yml if the value was set ?
     
Thread Status:
Not open for further replies.

Share This Page