@EventHandler
    public void OnBlockBreak(BlockBreakEvent e){
        Player p = e.getPlayer();
        PlayerDat pd = DBmanager.PlayerData.get(p.getName());
        Block b = e.getBlock();
//        p.sendMessage(String.valueOf(b.getType().equals(Material.LOG)));
        if(pd.pclass.equalsIgnoreCase("lumberjack")&&b.getType().equals(Material.LOG)){//&&p.getItemInHand().equals(Material.GOLD_AXE)
            boolean SameTree = true;
//            p.sendMessage("enter1");
            for(int y = b.getLocation().getBlockY()+1; SameTree; y++){
//                p.sendMessage("enter" + y);
                Block b2 = new Location(b.getLocation().getWorld(), b.getX(), y, b.getZ()).getBlock();
                if(b2.getType().equals(Material.LOG)){
                    b2.breakNaturally();
                }else{
                    SameTree = false;
                }
            }
        }
    }