Make a custom config file

Discussion in 'Plugin Development' started by dillyg10, Feb 24, 2012.

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

    Haribo98

    My guess is I have to create a new class for each of the configs.

    It's not that. Because it works with just 1 config. When I try and use 2 in the same class. It collides. Which I think is my issue.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  2. Offline

    Sagacious_Zed Bukkit Docs

    IF you are getting a NullPointerException in the console, you have a null pointer.
     
  3. Offline

    Haribo98

    I know that. And I know I am getting a NPE. I was saying that the fileName isn't the NPE.
     
  4. Offline

    Sagacious_Zed Bukkit Docs

    Then have you considered that plugin is null? Or possibly something returned by plugin is null.
     
  5. Offline

    fireblast709

    Move the tAPI initialization of the main class to the onEnable. As in:
    public TeamAPI tAPI;

    onEnable()
    {
    tAPI = new TeamAPI(this);
     
  6. Offline

    Haribo98

    Well it works now. I created a new class for each Config file, but only the PlayerConfig it's not saving it properly. And it's not fetching the configs properly either.
     
Thread Status:
Not open for further replies.

Share This Page