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


  2. Offline


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

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

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


    But the plugin is enabled.
  4. Offline


  5. 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?
  6. Offline


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


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


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


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


    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 - the channel pages aren't done but it's proof I own the site.
  11. Offline


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

Share This Page