Skip to content

Commit

Permalink
added <nation@nation.name>
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeebiss committed Jan 20, 2014
1 parent d9aade2 commit 4c7ce2d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/net/gnomeffinway/depenizen/objects/dNation.java
Expand Up @@ -214,6 +214,17 @@ else if (attribute.startsWith("towncount") || attribute.startsWith("town_count")
return new Element(nation.getNumTowns())
.getAttribute(attribute.fulfill(1));

// <--[tag]
// @attribute <nation@nation.name>
// @returns Element(String)
// @description
// Returns the nation's current name.
// @plugin Towny
// -->
else if (attribute.startsWith("name"))
return new Element(nation.getName())
.getAttribute(attribute.fulfill(1));

return new Element(identify()).getAttribute(attribute.fulfill(0));

}
Expand Down

0 comments on commit 4c7ce2d

Please sign in to comment.