event.getPlayer().sendMessage(ChatColor.RED + "No rails are nearby: This detector sign has not been activated!");
return true;
}
Block startsign = event.getBlock();
Block startrails = event.getRails();
BlockFace dir = event.getFacing();
if (!tryBuild(startrails, startsign, dir)) {
if (!tryBuild(startrails, startsign, FaceUtil.rotate(dir, 2))) {
if (!tryBuild(startrails, startsign, FaceUtil.rotate(dir, -2))) {
event.getPlayer().sendMessage(ChatColor.RED + "Failed to find a second detector sign: No region set.");
event.getPlayer().sendMessage(ChatColor.YELLOW + "Place a second connected detector sign to finish this region!");