A few Errors. Any help is appreciated.

Discussion in 'Plugin Development' started by iPhysX, Mar 1, 2011.

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

    iPhysX

    Hello,
    I've just started work on a plugin for the latest bukkit build.
    I followed an old-ish guide on how to find my way around bukkit, anyway, i had it working yesterday, but when i typed a command, eg. /balance
    It would not show my balance. Even though it said all was fine and dandy, in console.

    I have tried again and now..
    2011-03-01 18:59:07 [INFO] Done (1857420019ns)! For help, type "help" or "?"
    2011-03-01 19:00:00 [INFO] Starting minecraft server version Beta 1.3
    2011-03-01 19:00:00 [INFO] Loading properties
    2011-03-01 19:00:00 [INFO] Starting Minecraft server on *:25565
    2011-03-01 19:00:00 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-458-g557f3d2-b440jnks (MC: 1.3)
    2011-03-01 19:00:00 [INFO] Preparing level "world"
    2011-03-01 19:00:00 [INFO] Preparing start region
    2011-03-01 19:00:01 [INFO] Preparing spawn area: 52%
    2011-03-01 19:00:02 [SEVERE] Could not load plugins\MoneyBukkit.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:85)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:58)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassNotFoundException: bukkit.iphysx.MoneyBukkit.MoneyBukkit
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:72)
    ... 8 more

    I found out i wasn't using the correct path in plugin.yml
    i have amended this and..

    2011-03-01 19:00:02 [INFO] Done (1834385585ns)! For help, type "help" or "?"
    2011-03-01 19:05:32 [INFO] Starting minecraft server version Beta 1.3
    2011-03-01 19:05:32 [INFO] Loading properties
    2011-03-01 19:05:32 [INFO] Starting Minecraft server on *:25565
    2011-03-01 19:05:32 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-458-g557f3d2-b440jnks (MC: 1.3)
    2011-03-01 19:05:32 [INFO] Preparing level "world"
    2011-03-01 19:05:32 [INFO] Preparing start region
    2011-03-01 19:05:34 [INFO] Preparing spawn area: 52%
    2011-03-01 19:05:34 [SEVERE] Could not load plugins\MoneyBukkit.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:85)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:58)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:77)
    ... 8 more
    Caused by: java.lang.Error: Unresolved compilation problem:
    The constructor JavaPlugin(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is undefined

    at com.bukkit.iphysx.MoneyBukkit.MoneyBukkit.<init>(MoneyBukkit.java:21)
    ... 13 more
    2011-03-01 19:05:34 [INFO] Done (1804563773ns)! For help, type "help" or "?"
     
  2. Offline

    Sammy

    You can't use com.bukkit.* for the package, is't saved for bukkit devs !
     
  3. Offline

    lonelydime

    Side note, if you're using an old guide for player commands, make sure you're not using PLAYER_COMMAND since it won't work anymore, use onCommand instead.
     
  4. Offline

    Infernus

    It doesn't? Thought he mentioned that wasn't true, but that the onCommand was just new and ready to be used. My server still works like a charm though.
     
  5. Offline

    lonelydime

    New versions, [454+] I believe, of craftbukkit have gotten rid of the PLAYER_COMMAND hook.
     
  6. Offline

    Sammy

  7. Offline

    iPhysX

    oh the com.bukkit.* (had no idea), thanks.
    And i was using the PLAYER_COMMAND, but i noticed it wasn't there anymore, i could only find player_command_preprocess.
    I don't think it was in there the last time i ran the plugin.
     
Thread Status:
Not open for further replies.

Share This Page