Можете указать на ошибку(и)?
public void use1(PlayerInteractEvent e) {
Player player = e.getPlayer();
Plugin Plugin = (org.bukkit.plugin.Plugin) this;
ItemStack FrostBook = e.getPlayer().getInventory().getItemInMainHand();
ItemStack HoneyArmorC = e.getPlayer().getInventory().getChestplate();
if(e.getPlayer().getInventory().getItemInMainHand().getType() != Material.BOOK) return;
if(e.getAction() != Action.RIGHT_CLICK_AIR && e.getAction() != Action.RIGHT_CLICK_BLOCK) return;
if(!FrostBook.getItemMeta().hasDisplayName()) return;
if(!FrostBook.getItemMeta().getDisplayName().equals(ChatColor.BLUE + "Стрела Льда")) return;
if(e.getPlayer().getExp() == 0) return;
player.launchProjectile(Snowball.class, player.getEyeLocation().getDirection());
Entity mobs = (Entity) player.getWorld().getNearbyEntities(player.getLocation(), 1, 1, 1);
mobs.setMetadata("PSB", new FixedMetadataValue(Plugin, true));
player.playSound(player.getLocation(), Sound.ENTITY_SNOW_GOLEM_SHOOT, 8, 1);
player.spawnParticle(Particle.SNOWBALL, player.getLocation().add(0.5D, 0.5D, 0.5D), 25 , 1.2F, 1.2F, 1.2F);
player.giveExp(-2);
if(e.getPlayer().getExp() == 0) return;
if(e.getPlayer().getInventory().getChestplate().getType() == Material.GOLDEN_CHESTPLATE && HoneyArmorC.getItemMeta().hasDisplayName() && HoneyArmorC.getItemMeta().getDisplayName().equals(ChatColor.YELLOW + "Пчелиный нагрудник")) player.giveExp(+1);
}
@EventHandler
public void prv1(ProjectileHitEvent e) {
if(e.getEntity().getShooter() instanceof Player) {
if(e.getEntityType().equals(EntityType.SNOWBALL)) {
if(e.getEntity().hasMetadata("PSB")) {
if(e.getHitBlock() == null) {
Location loc = e.getHitEntity().getLocation();
e.getHitEntity().getWorld().createExplosion(loc.getX(), loc.getY(), loc.getZ(), 1, false, false);
}else if(e.getHitEntity() == null) {
Location loc = e.getHitBlock().getLocation();
e.getHitBlock().getWorld().createExplosion(loc.getX(), loc.getY(), loc.getZ(), 1, false, false);
}
}
}
}
}