Claim event faction ?

Discussion in 'Spigot Plugin Development' started by iNoXs, Jun 25, 2016.

  1. Hey i'm looking for an event like OnPlayerClaim for limit claim in a region with faction & worlguard
    i try to look all the event in faction & massivecraft but idk what event use
  2. Thanks ;) and for limitate claim number in a region ?
  3. or check the number of claim in a region
  4. 1. Edit posts.
    2. Tag me for a reply.
    3. Answer is as follows:
    Get chunks of the faction.
    Get all chunks in your region and make sure it's less claimed chunks than the max.
    If it's equal to, cancel.
  5. Code (Text):
    Ok this code works but idk how to get all chunks in a region with worlguard
  6. Code (Java):
    List<Chunk> claimedChunks;
    List<Chunk> wgClaimedChunks;
    for (Chunk c : claimedChunks)
        if (worldguardthing.isRegion(c))
  7. what do you mean by if(worldguardthing.isRegion(c)) ?
    the region name ? or chunk in the regions