Worldguard PvP Flag Bug?!?

Discussion in 'Plugin Development' started by Nico4898, Aug 24, 2014.

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


    I dont know how to make my code work....
    It always underlines the " regionManager.getApplicableRegions(p.getLocation());" red and says , that
    the class with worldedit.vector cannot be resolved, because its inderectly referenced from the req. class file.

    1. World world = p.getWorld();
    2. LocalPlayer locPlayer =MainVillagerPvP.WorldGuard.wrapPlayer(p);
    3. RegionManager regionManager = MainVillagerPvP.WorldGuard.getRegionManager(world);
    4. ApplicableRegionSet arset = regionManager.getApplicableRegions(p.getLocation());
    5. if (arset.allows(DefaultFlag.PVP, locPlayer) == true){
    6. Fightlogger.remove(p.getName());
    7. }


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jun 10, 2016
Thread Status:
Not open for further replies.

Share This Page