package com.untamedears.PrisonPearl;

import java.util.UUID;

import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;

import com.topcat.npclib.entity.NPC;
import com.trc202.CombatTagEvents.NpcDespawnEvent;
import com.trc202.CombatTagEvents.NpcDespawnReason;

import vg.civcraft.mc.namelayer.NameAPI;

class CombatTagListener implements Listener {
    final PrisonPearlManager pearlman_;

    public CombatTagListener(final PrisonPearlPlugin plugin,
            final PrisonPearlManager pearlman) {
        this.pearlman_ = pearlman;
        Bukkit.getPluginManager().registerEvents(this, plugin);
    }

    @EventHandler
    public void onNpcDespawn(NpcDespawnEvent event) {
        if (event.getReason() != NpcDespawnReason.DESPAWN_TIMEOUT) {
            return;
        }
        UUID plruuid = NameAPI.getUUID(event.getPlayerName());
        NPC npc = event.getNpc();
        Location loc = npc.getBukkitEntity().getLocation();

        pearlman_.handleNpcDespawn(plruuid, loc);
    }
}
@@ -327,50 +327,8 @@
 n;%0A%0A
-import vg.civcraft.mc.namelayer.NameAPI;%0A%0A
 clas
@@ -824,24 +824,8 @@
 d = 
-NameAPI.getUUID(
 even
@@ -839,14 +839,13 @@
 ayer
-Name()
+UUID(
 );%0A 
@@ -995,8 +995,9 @@
 %0A    %7D%0A%7D
+%0A

Update CombatTagListener.java