[Not Solved!] Gui Null Error

Discussion in 'Plugin Development' started by PotatoLol12321, Nov 10, 2014.

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


    Shmobi I just moved all the Plugin-Constructor to the MenuInv-Constructor, but it's still throwing the same error. :/
  2. PotatoLol12321 sorry, i havent been online for a while, i was busy... i don't think you did it right, because else it would work. could you show me the newest code pls?
  3. Offline


  4. Offline


    Juancomaster1998 It's counter productive and also not related to the problem.
  5. Rocoty Well, he`s trying to make an kit plugin, and there`s the example of a kit plugin...
    Anyways if u want me to delete it I`ll delete it
  6. Offline


    Juancomaster1998 If you'd read the previous posts you should have come to the conclusion that the problem is in fact about dependency injection
  7. Offline


    you have 2 constucter methods, if you remove

    1. public Menu(MenuInv instance) {
    2. plugin = instance;
    3. }
    and put the plugin = instance thingy in the other constuctor class you should be OK. But your code is a little messy it would be smarter to clean it up first


    oh nvm I didnt saw there were 3 pages in this thread, i only saw one but do what Rocoty told you he's right, IDK why you have 2 consturctors
Thread Status:
Not open for further replies.

Share This Page