Hooking Worldguard

Discussion in 'Plugin Development' started by Crash, Mar 4, 2011.

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

    Crash

    I don't know why this could be happening but whenever I try to use something with LocalPlayer in it lie region.isOwner I get this problem when I load my plugin :
    Code:
    [SEVERE] Could not load plugins\RegionMarket.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.NoClassDefFoundError: com/sk89q/worldguard/LocalPlayer
        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
    Caused by: java.lang.ClassNotFoundException: com.sk89q.worldguard.LocalPlayer
        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)
        ... 11 more
    I didn't have this problem before and I don't know why it's popping up now.
    I have WG as a reference library and imported all the stuff I needed to.
     
  2. Offline

    sk89q

    Put WorldGuard.jar into "Class-Path" in the manifest file of your plugin.

    Having to make LocalPlayers to check with WorldGuard is kind of lame though, so hopefully I can have a better way this weekend!
     
Thread Status:
Not open for further replies.

Share This Page