Skip to content

Commit

Permalink
Start using dEntity.identifyType() in world event names.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcernat committed Oct 11, 2013
1 parent b2ab5a3 commit 47b283b
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 165 deletions.
6 changes: 6 additions & 0 deletions src/main/java/net/aufdemrand/denizen/objects/dEntity.java
Expand Up @@ -965,6 +965,12 @@ else if (isSpawned())
return "null";
}

public String identifyType() {
if (isNPC()) return "npc";
else if (isPlayer()) return "player";
else return "e@" + entity_type.name();
}

@Override
public String toString() {
return identify();
Expand Down

0 comments on commit 47b283b

Please sign in to comment.