return true;
}
private boolean join(Player player, String playerToJoin)
{
GreatTree tree = TreesData.getGreatTree(player);
if (null != tree)
return false;
if (!"joining".equals(TreeSpiritPlugin.getConfigInstance().getString(
"co-op-type")))
return false;
tree = TreesData.getGreatTree(playerToJoin);
if (null == tree)
return false;
if (!(tree instanceof GreatTreeCoop))
tree = tree.update();
((GreatTreeCoop) tree).add(player);
player.teleport(tree.getTop());
return true;
}