Error trying to register .... while not enabled

Discussion in 'Plugin Development' started by MasterDoctor, Nov 6, 2015.

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

    MasterDoctor

  2. Offline

    Zombie_Striker

    Caused by: org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register menu.nisovin.IconMenu@240b7499 while not enabled

    at menu.nisovin.IconMenu.<init>(IconMenu.java:35) ~[?:?]
    at com.goldblockstudios.masterdoctor.Main.<init>(Main.java:35) ~[?:?]

    Please learn to read your own error messages.
     
  3. Offline

    MasterDoctor

    But the plugin is enabled.
     
  4. Offline

    I Al Istannen

    @MasterDoctor And could you maybye show your main class? Do you use the "onEnable()" method to register stuff? Or do you use something else?
     
  5. Offline

    Zombie_Striker

    @MasterDoctor
    Most likely you have two classes that extend JavaPlugin/ create the Main class twice. You should never do this.
     
    Last edited: Nov 6, 2015
  6. Offline

    Scimiguy

    Even better, show us your full main class
     
  7. Offline

    MasterDoctor

    I fixed the problem, I was trying to use another class in the constructor - loading before the plugin was enabled :p
    Silly me!
     
  8. Offline

    mcdorli

    I don't think you own goldblockstudios.com, but if you do, then there is a php error on the 15th line.
     
  9. Offline

    MasterDoctor

    I do. I'm still working on the site :)
    If you want me to prove it, I'll change the site to link to my bukkit page.
    EDIT: OR go to http://beta.goldblockstudios.com/Home/ - the channel pages aren't done but it's proof I own the site.
     
  10. Offline

    mcdorli

    Not needed. Good work with it.
     
Thread Status:
Not open for further replies.

Share This Page