Cant figure this issue out.

Discussion in 'Plugin Development' started by darknesschaos, Jan 16, 2011.

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

    darknesschaos

    upon startup of my server the plugin dies with this error, I just cant wrap my head around it.
    Code:
    SEVERE: Could not load plugins\martyrdom.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:82)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:115)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:80)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:38)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.NoSuchMethodException: com.bukkit.darknesschaos.martyrdom.M
    artyrdom.<init>(org.bukkit.plugin.PluginLoader, org.bukkit.Server, org.bukkit.pl
    ugin.PluginDescriptionFile, java.io.File, java.io.File, java.lang.ClassLoader)
            at java.lang.Class.getConstructor0(Unknown Source)
            at java.lang.Class.getConstructor(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:78)
            ... 8 more
    What should I do?
     
  2. Offline

    Fifteen

    May I see your plugin.yml?
     
  3. Offline

    darknesschaos

    name: Martyrdom
    main: com.bukkit.darknesschaos.martyrdom.Martyrdom
    version: 1.0
     
  4. Offline

    Archelaus

  5. Offline

    Fifteen

    Use this:

    Code:
    name: Martyrdom
    main: com.darknesschaos.bukkit.martyrdom.Martyrdom
    version: 1.0
    After doing that, you'll need to place your folders in the correct order.
     
  6. Offline

    Archelaus

    My file structure is

    Code:
    bukkit.RightLegRed.Civilizations.Civilizations
    and to my understanding it doesn't matter that much.
     
  7. Offline

    Fifteen

    Well, it didn't work for me until I fixed the order of the folders.
     
  8. Offline

    darknesschaos

  9. Offline

    Archelaus



    But that would give you an ClassNotFoundException or InvalidClassException, wouldn't it?
     
  10. I have the same error :(
    Yes my constructor is Right and this is my plugin.yml :

    name: TechPack
    main: com.bukkit.techguard.TechPack.TechPack
    version: 1
     
  11. Offline

    Archelaus


    Are you 100% sure that your constructor is right? Mind posting it here, because I thought mine was but in the end, it wasn't.
     
  12. Code:
    public TechPack(PluginLoader pluginLoader, Server instance, PluginDescriptionFile desc, File folder, File plugin, ClassLoader cLoader) {
            super(pluginLoader, instance, desc, folder, plugin, cLoader);
        }
     
  13. Offline

    Archelaus

    That seems fine. Did you make this plugin via the wiki or did you use one of those programs that generates it for you?
     
  14. Wiki, with Eclipse.
     
  15. Offline

    Archelaus

    I'm fairly stumped with this. Sorry man ):
     
  16. Offline

    Shados

    Post the full text of the error you get; will probably shed some light on the issue.
     
  17. Got it fixed already, but tnx anyway :)
     
Thread Status:
Not open for further replies.

Share This Page