@EventHandler
    public void onPlayerDeath(PlayerDeathEvent event) {
        if (main.isIngame()) {
            Team team = main.getTeamByPlayer(event.getEntity());
            if (team != null) {
                team.removePlayer(event.getEntity());
            }
            OfflinePlayer oPlayer = damageCounter.get(event.getEntity());
            if (oPlayer != null && oPlayer.isOnline()) {
                Team point = main.getTeamByPlayer(oPlayer.getPlayer());
                if (team != null) {
                    Score score = main.score.getScore(main.getServer().getOfflinePlayer(point.getName()));
                    score.setScore(score.getScore() + 1);
                }
            }
            if (oPlayer != null) {
                ItemStack head = new ItemStack(Material.SKULL_ITEM, 1, (short)3);
                SkullMeta meta = (SkullMeta)head.getItemMeta();
                meta.setOwner(event.getEntity().getName());
                head.setItemMeta(meta);
                event.getDrops().add(head);
            }
            main.setSpectator(event.getEntity());
        }
    }