y = (int) player.posY;
z = (int) player.posZ;
if (type == 1)
{
PlayerInfo.selectionProvider.setPoint1((EntityPlayerMP)player,new Point(x, y, z));
}
else
{
PlayerInfo.selectionProvider.setPoint2((EntityPlayerMP)player,new Point(x, y, z));
}
OutputHandler.chatConfirmation(player, "Pos" + type + " set to " + x + ", " + y + ", " + z);
return;
}
else
{
error(player);
return;
}
}
if (args.length > 0)
{
if (args.length < 3)
{
error(player);
return;
}
try
{
x = Integer.parseInt(args[0]);
y = Integer.parseInt(args[1]);
z = Integer.parseInt(args[2]);
}
catch (NumberFormatException e)
{
error(player);
return;
}
if (type == 1)
{
PlayerInfo.selectionProvider.setPoint1((EntityPlayerMP)player,new Point(x, y, z));
}
else
{
PlayerInfo.selectionProvider.setPoint2((EntityPlayerMP)player,new Point(x, y, z));
}
OutputHandler.chatConfirmation(player, "Pos" + type + " set to " + x + ", " + y + ", " + z);
return;
}