return true;
UserIdent ident = null;
EntityPlayer player = contextGetPlayerOrCommandPlayer(context);
WorldPoint loc = null;
WorldArea area = null;
int dim = 0;
if (player != null)
{
ident = new UserIdent(player);
// TODO: should be changed to context.getDimension()
dim = player.dimension;
}
if (context.getTargetLocationStart() != null)
{
if (context.getTargetLocationEnd() != null)
{
area = new WorldArea(dim, new Point(context.getTargetLocationStart()), new Point(context.getTargetLocationEnd()));
}
else
{
loc = new WorldPoint(dim, context.getTargetLocationStart());
}
}
else if (context.getSourceLocationStart() != null)
{
if (context.getSourceLocationEnd() != null)
{
area = new WorldArea(dim, new Point(context.getSourceLocationStart()), new Point(context.getSourceLocationEnd()));
}
else
{
loc = new WorldPoint(dim, context.getSourceLocationStart());
}