// left Click
if (event.action.equals(PlayerInteractEvent.Action.LEFT_CLICK_BLOCK))
{
PlayerInfo.selectionProvider.setPoint1((EntityPlayerMP) event.entityPlayer, point);
IChatComponent format = OutputHandler.createFromText("Pos1 set to " + event.x + ", " + event.y + ", " + event.z);
player.addChatMessage(OutputHandler.colourize(format, EnumChatFormatting.DARK_PURPLE));
event.setCanceled(true);
}
// right Click
else if (event.action.equals(PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK))
{
PlayerInfo.selectionProvider.setPoint2((EntityPlayerMP) event.entityPlayer, point);
IChatComponent format = OutputHandler.createFromText("Pos2 set to " + event.x + ", " + event.y + ", " + event.z);
player.addChatMessage(OutputHandler.colourize(format, EnumChatFormatting.DARK_PURPLE));
event.setCanceled(true);
}
}