NoSuchMethodException if i have 2 plugins with the same class name.

Discussion in 'Plugin Development' started by Goty_Metal, Feb 20, 2013.

Thread Status:
Not open for further replies.
  1. Well just that, i don't know why but if i have 2 plugins with the same name class (like playerlistener) i get this error and only one of the plugins is correctly loaded, if i just change the name of the class to other it works perfect, if i have 3 plugins instead 2 the same, just 1 plugin loads well.
     
  2. Offline

    tkausl

    Why do u use the same package for all ur plugins?
    Use your.package.pluginname instead of your.package then it should work.
     
  3. I do ... and i get this error anyways
     
  4. Offline

    Ne0nx3r0

    You're probably going to need to provide some code samples.

    You might have a typo or something, wrong import, etc.
     
  5. Don't think so... the plugins work PERFECT, but if i have 2 different plugins with different names (of course) but with a class with the same name i get this, it's really weird.
     
  6. Offline

    Ne0nx3r0

    Unless they are in the same package, I don't think there would be an issue. Like I said, without any code to look at, this is all just guessing based on the error.
     
  7. Offline

    RainoBoy97

    If they have the same package name, it will create this error.
     
  8. You think "com.gmail.josemanuelgassin.DeathMessages" and "com.gmail.josemanuelgassin.TheArcher" are equal?
    I told before that the package names are different.

    EDIT: forget it, i upgraded the Spigot version and the problem has been solved by itself, weird, thanks to all anyway :)
     
Thread Status:
Not open for further replies.

Share This Page