mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-27 05:05:20 +01:00
32 lines
676 B
Java
32 lines
676 B
Java
package net.citizensnpcs;
|
|
|
|
import net.citizensnpcs.api.event.NPCEvent;
|
|
import net.citizensnpcs.api.npc.NPC;
|
|
|
|
import org.bukkit.Location;
|
|
import org.bukkit.event.HandlerList;
|
|
|
|
public class NPCNeedsRespawnEvent extends NPCEvent {
|
|
private final Location spawn;
|
|
|
|
public NPCNeedsRespawnEvent(NPC npc, Location at) {
|
|
super(npc);
|
|
this.spawn = at;
|
|
}
|
|
|
|
@Override
|
|
public HandlerList getHandlers() {
|
|
return handlers;
|
|
}
|
|
|
|
public Location getSpawnLocation() {
|
|
return spawn;
|
|
}
|
|
|
|
private static final HandlerList handlers = new HandlerList();
|
|
|
|
public static HandlerList getHandlerList() {
|
|
return handlers;
|
|
}
|
|
}
|