localPlayer.printError("mech.teleport.invalidcoords");
return;
}
trigger = event.getClickedBlock();
} else if (event.getClickedBlock().getType() == Material.STONE_BUTTON || event.getClickedBlock().getType() == Material.WOOD_BUTTON) {
Button b = (Button) event.getClickedBlock().getState().getData();
if(b == null || b.getAttachedFace() == null) return;
Block sign = event.getClickedBlock().getRelative(b.getAttachedFace(), 2);
if (SignUtil.isSign(sign)) {
ChangedSign s = BukkitUtil.toChangedSign(sign);
if (!s.getLine(1).equals("[Teleporter]")) return;
String[] pos = RegexUtil.COLON_PATTERN.split(s.getLine(2));
if (pos.length <= 2) {