@Override
    public void onProjectileHit(ProjectileHitEvent event) {        
        if(!(Properties.cooldown_on_damages_only)) {
            Entity entity = event.getEntity();

            if(entity instanceof Arrow) {            
                Arrow arrow = (Arrow) entity;

                if(arrow.getShooter() instanceof Player) {

                    Player player = (Player) arrow.getShooter();                
                    PlayerData playerData = Users.getPlayerData(player);
                    Date currentDate = new Date();

                    if(playerData.getUsedWeapon() > currentDate.getTime()) {                    
                        return;
                    }

                    int cooldown = Properties.confCooldowns.get(261);
                    
                    if(!player.hasPermission("advancedpvp.nocooldown")) {
                        playerData.setUsedWeapon((currentDate.getTime() + cooldown));
                    }
                    
                    playerData.setClickedAir(currentDate.getTime()); // Dirty bugfix for bukkit :(
                    
                    return;                
                }     
            }
        }
    }