For Developers

You could use the newest CatchMe.jar (since version 1.0) as an API to develop plugins, which uses CatchMe.

To get a WorldGuard region as a CatchableArea, you should first check, if it is set as catchable:

ProtectedRegion region;

boolean isCatchable = AreaHandler.isRegionCatchable(region);

If the region is catchable, you could load it from the handler:

World world;
ProtectedRegion region;

CatchableArea area = null;

if(isCatchable)
{
	area = AreaHandler.getArea(world, region);
}

With the instance of the class CatchableArea, you could get and set informations about the area, start catching and money processes and all you need. For more information have a look at the JavaDoc.


Comments

Posts Quoted:
Reply
Clear All Quotes