Plugin already initialized!

Discussion in 'Plugin Development' started by blenderfreaky, Apr 17, 2016.

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


  2. Offline


    No one should want to download that (as you should never download random jars from anywhere). Please post your code on PasteBin or in a new replay using the [ code] [/code] tags.
  3. Offline


    You have some issues with naming your classes/packages. I'm pretty sure if you have multiple plugins with main classes with the same main class/package names, you can get this error.

    First, your package should be different for each of your plugins. I, along with a lot of other people, use this for the package name: me.[username].[project]
    So I might name this package me.MnMaxon.Banner

    It's recommend that you don't name your Main class "Main" for every plugin, but you'll probably be ok if you do.

    You'll also need to change it in your plugin.yml

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Apr 18, 2016
  4. Offline

    timtower Administrator Administrator Moderator

    Cleaned up thread, keep it on topic.
  5. Offline



    You're right about the naming thing, and that is probably what is causing this issue, because he has classes with conflicting names (I would wager, anyway). This is one of the reasons we recommend against naming your classes like this.


    You should really consider taking it easy on the 'static' keyword, he never did anything to you.
Thread Status:
Not open for further replies.

Share This Page