{
byte type = heart.getData();
if ("logs".equals(TreeSpiritPlugin.getConfigInstance().getString(
"co-op-type")))
{
GreatTreeCoop coopTree = CoOpLogsHandler.getTreeByType(type);
if (coopTree != null)
{
// joining a co-op tree
player.getInventory().clear();
player.getInventory().addItem(
new ItemStack(Material.LOG, 3, type));
player.getInventory().addItem(
new ItemStack(Material.SAPLING, 1, type));
coopTree.add(player);
player.teleport(coopTree.getTop());
player.sendMessage(Text.getMessage("co-op-log-new-player"));
return;
}
}
createClassicTree(player, heart, type);