Skip to content

Commit

Permalink
Adjust dNPC meta
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 30, 2013
1 parent c21a48f commit c08ddb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/aufdemrand/denizen/objects/dNPC.java
Expand Up @@ -264,10 +264,10 @@ public String getAttribute(Attribute attribute) {
if (attribute == null) return "null";

// <--[tag]
// @attribute <npc.name.nickname>
// @attribute <npc.name.nickname>
// @returns Element
// @description
// returns the NPC's nickname provided by the nickname trait, or null if the npc does not have the nickname trait.
// returns the NPC's nickname provided by the nickname trait, or null if the NPC does not have the nickname trait.
// -->
if (attribute.startsWith("name.nickname"))
return new Element(getCitizen().hasTrait(NicknameTrait.class) ? getCitizen().getTrait(NicknameTrait.class)
Expand All @@ -277,7 +277,7 @@ public String getAttribute(Attribute attribute) {
// @attribute <npc.name>
// @returns Element
// @description
// returns the player's nickname provided by the nickname trait, or null if the NPC does not have a nickname
// returns the name of the NPC.
// -->
if (attribute.startsWith("name"))
return new Element(ChatColor.stripColor(getName()))
Expand Down

0 comments on commit c08ddb2

Please sign in to comment.