Skip to content

Commit

Permalink
Add dObject identifySimple()'s
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Jan 20, 2014
1 parent ed9a870 commit 73b4130
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 4 deletions.
Expand Up @@ -45,8 +45,8 @@ else if (!scriptEntry.hasObject("skill")
&& arg.matchesPrefix("skill"))
scriptEntry.addObject("skill", arg.asElement());

else if (!scriptEntry.hasObject("qty, q, quantity")
&& arg.matchesPrefix("qty")
else if (!scriptEntry.hasObject("qty")
&& arg.matchesPrefix("q, qty, quantity")
&& arg.matchesPrimitive(aH.PrimitiveType.Double))
scriptEntry.addObject("qty", arg.asElement());

Expand Down
Expand Up @@ -100,6 +100,12 @@ public String identify() {
return "faction@" + faction.getName();
}

@Override
public String identifySimple() {
// TODO: Properties?
return identify();
}

@Override
public String getAttribute(Attribute attribute) {

Expand Down
6 changes: 6 additions & 0 deletions src/main/java/net/gnomeffinway/depenizen/objects/dJob.java
Expand Up @@ -134,6 +134,12 @@ public String identify() {
return "job@" + job.getName() + (jobOwner == null ? "" : ("[" + jobOwner.getName() + "]"));
}

@Override
public String identifySimple() {
// TODO: Properties?
return identify();
}

@Override
public String getAttribute(Attribute attribute) {

Expand Down
6 changes: 6 additions & 0 deletions src/main/java/net/gnomeffinway/depenizen/objects/dNation.java
Expand Up @@ -88,6 +88,12 @@ public String identify() {
return "nation@" + nation.getName();
}

@Override
public String identifySimple() {
// TODO: Properties?
return identify();
}

@Override
public String getAttribute(Attribute attribute) {

Expand Down
8 changes: 7 additions & 1 deletion src/main/java/net/gnomeffinway/depenizen/objects/dTown.java
Expand Up @@ -90,7 +90,13 @@ public String identify() {
return "town@" + town.getName();
}

@Override
@Override
public String identifySimple() {
// TODO: Properties?
return identify();
}

@Override
public String getAttribute(Attribute attribute) {

// <--[tag]
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Expand Up @@ -2,7 +2,7 @@ name: Depenizen
author: GnomeffinWay
version: ${project.version} (build ${BUILD_NUMBER})
main: net.gnomeffinway.depenizen.Depenizen
depend: [Denizen]
depend: [Denizen, Citizens]
softdepend: [mcMMO, BattleNight, Towny, Factions, Votifier, Bungeefier, Jobs, Heroes, pvparena]

commands:
Expand Down

0 comments on commit 73b4130

Please sign in to comment.