Factions API : For Loop through Collection<Faction> is null.

Discussion in 'Plugin Development' started by GeekyCompz, Mar 12, 2016.

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

    GeekyCompz

    Error Log:
    http://codepaste.net/5qksd8

    Here is my section of code it is failing at:
    http://codepaste.net/aogues

    I don't understand, I have debugged it down to the point where fa.* will just always return a null pointer.

    Here is the FactionsAPI Docs: https://www.massivecraft.com/factions-develop
    Under Getting Factions at the end, you will find how to iterate over the factions.

    Okay, nevermind. Turns out my logger is null. For some reason, anything I try to get from my main class, just returns null. Even if I try to get my YamlConfiguration.

    Here is how I am accessing my main class:

    WarDeclaration plugin;
    public void plugin(WarDeclaration plugin) {
    this.plugin = plugin;
    }



    HERE IS MY PLUGIN on GITHUB:
    https://github.com/Axiom1999/WarDec...arDeclaration/src/me/axiom/bpl/wardeclaration
     
    Last edited: Mar 12, 2016
  2. Offline

    cluter123

    Your constructor is wrong. Check your pull requests on github.
     
Thread Status:
Not open for further replies.

Share This Page