Error with hooking into world guard

Discussion in 'Plugin Development' started by Prothean_IGS, Mar 25, 2014.

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

    Prothean_IGS

    I'm trying to hook into world guard to check if a region has pvp enabled or not but I ran into an error that I'm not sure what to do about. I followed everything from here: http://wiki.sk89q.com/wiki/WorldGuard/Regions/API

    Here's the code with the error message of:
    "The type com.sk89q.worldedit.Vector cannot be resolved. It is indirectly referenced from required .class file" And the only option it gives me to fix it is to configure build path.
    Code:java
    1. WorldGuardPlugin worldGuard = getWorldGuard();
    2.  
    3. Location block = player.getLocation();
    4. Vector pt = block.toVector();
    5. RegionManager regionManager = worldGuard.getRegionManager(player.getWorld());
    6. ApplicableRegionSet set = regionManager.getApplicableRegions(pt); // This is where I get the red line error


    Anyone know how to fix this?
     
  2. Offline

    synquall

    WorldGuard depends on WorldEdit. Therefore, you need to reference WorldEdit in your plugin, too.
     
  3. Offline

    Prothean_IGS

    Ah thank you
     
Thread Status:
Not open for further replies.

Share This Page