Need help with WorldGuard

Discussion in 'Plugin Development' started by Mr Washington, Apr 18, 2012.

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

    Mr Washington

    Ok, I have a very complicated plugin set up where a user places a block, the user starts a conversation with the server and chooses a size and a player for owner and location. When i try to create the region with a ProtectedRegion code. Everything passes through however I get the following error:
    Code:
    *snip plugin name*
    Caused by: java.lang.NoClassDefFoundError: com/sk89q/worldguard/protection/regions/ProtectedRegion
    Caused by: java.lang.ClassNotFoundException: com.sk89q.worldguard.protection.regions.ProtectedRegion
    
    I know it is there and I have WorldGuard (The same version) installed on the server and referenced in the plugin. Any help?

    EDIT: I have tried every way I can think of to fix this. However I have been unsuccessful
     
  2. Offline

    bsquidwrd

    What I had to do when using WorldGuard as part of my plugin, is make a variable that gets set in the method onEnable(), and then use that variable in the getWorldGuard() method. Hope that helps you out.
     
  3. Offline

    Mr Washington

    bsquidwrd That is how I get WorldGuard. I just tested setting a global public variable to call WorldGuard but I still get my ClassNotDef Error. What am I doing wrong? Everything checks out in Netbeans :-/
     
Thread Status:
Not open for further replies.

Share This Page