Package com.warrows.plugins.TreeSpirit.trees

Examples of com.warrows.plugins.TreeSpirit.trees.GreatTree


  @EventHandler(ignoreCancelled = true)
  public void onBlockBurnEvent(BlockBurnEvent event)
  {
    Block block = event.getBlock();
    GreatTree tree = TreesData.getGreatTree(block);
    if (tree != null)
      TreesData.destroyBlock(tree, block, event);
  }
View Full Code Here


  @EventHandler(ignoreCancelled = true)
  public void onBlockFadeEvent(BlockFadeEvent event)
  {
    Block block = event.getBlock();
    GreatTree tree = TreesData.getGreatTree(block);
    if (tree != null)
      TreesData.destroyBlock(tree, block, event);
  }
View Full Code Here

  @EventHandler(ignoreCancelled = true)
  public void onLeavesDecayEvent(LeavesDecayEvent event)
  {
    Block block = event.getBlock();
    GreatTree tree = TreesData.getGreatTree(block);
    if (tree != null)
      TreesData.destroyBlock(tree, block, event);
  }
View Full Code Here

  public void onTreeExplosion(EntityExplodeEvent event)
  {
    for (Block b : event.blockList())
    {
      Block block = b;
      GreatTree tree = TreesData.getGreatTree(block);
      if (tree != null)
        TreesData.destroyBlock(tree, b, event);
    }
  }
View Full Code Here

    return result;
  }

  private boolean debug(Player sender)
  {
    GreatTree tree = TreesData.getGreatTree(sender);
    for (SBlock sb : tree.getBody())
    {
      Block item = sb.getBukkitBlock();
      if (item.getType() != Material.LOG
          && item.getType() != Material.SAPLING
          && item.getType() != Material.LEAVES
View Full Code Here

  private boolean info(Player player)
  {
    if (TreesData.hasStarted(player))
    {
      GreatTree tree = TreesData.getGreatTree(player);
      if (tree != null)
      {
        player.sendMessage(tree.toString());
        return true;
      }
    }
    player.sendMessage(Text.getMessage("no-tree"));
    return true;
View Full Code Here

    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;
  }
View Full Code Here

TOP

Related Classes of com.warrows.plugins.TreeSpirit.trees.GreatTree

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.