Skip to content

Commit

Permalink
Allow offline players to use all tags, fixes #392
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Sep 2, 2013
1 parent 9b42711 commit b8fab3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/aufdemrand/denizen/objects/Element.java
Expand Up @@ -551,7 +551,7 @@ else if (element.toLowerCase().contains(contains.toLowerCase()))
// incorrectly. So instead of just passing through what's been resolved
// so far, 'null' shall be returned with an error message.

if (attribute.attributes.size() > 0) {
if (attribute.attributes.size() > 0) {
dB.echoError("Unfilled attributes '" + attribute.attributes.toString() + "'" +
"for tag <" + attribute.getOrigin() + ">!");
return "null";
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/net/aufdemrand/denizen/objects/dPlayer.java
Expand Up @@ -424,7 +424,9 @@ else return new Element(PlayerTags.playerChatHistory.get(player_name).get(x - 1)
}
}

if (!isOnline()) return new Element(identify()).getAttribute(attribute);
// TODO: Achieve this less terribly (Make it specific to each tag, or reorganize tags so entity-requiring
// tags go after this, and offline-working tags go above.)
// if (!isOnline()) return new Element(identify()).getAttribute(attribute);

// Player is required to be online after this point...

Expand Down

0 comments on commit b8fab3d

Please sign in to comment.