Skip to content

Commit

Permalink
Add new DespawnReasons
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Mar 14, 2013
1 parent 5e51127 commit db06b62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/java/net/citizensnpcs/api/event/DespawnReason.java
Expand Up @@ -3,6 +3,8 @@
public enum DespawnReason {
CHUNK_UNLOAD,
DEATH,
PENDING_RESPAWN,
PLUGIN,
REMOVAL,
WORLD_UNLOAD;
}
3 changes: 2 additions & 1 deletion src/main/java/net/citizensnpcs/api/npc/NPC.java
Expand Up @@ -39,7 +39,8 @@ public interface NPC extends Agent {
public MetadataStore data();

/**
* Despawns this NPC.
* Despawns this NPC. This is equivalent to calling
* {@link #despawn(DespawnReason)} with {@link DespawnReason#PLUGIN}.
*
* @return Whether this NPC was able to despawn
*/
Expand Down

0 comments on commit db06b62

Please sign in to comment.