Skip to content

Commit

Permalink
property offline fix for players
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Nov 3, 2017
1 parent 33b7218 commit 77fd240
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1503,6 +1503,15 @@ else if (isOnline()) {

// Player is required to be online after this point...
if (!isOnline()) {

// Iterate through this object's properties' attributes
for (Property property : PropertyParser.getProperties(this)) {
String returned = property.getAttribute(attribute);
if (returned != null) {
return returned;
}
}

return new Element(identify()).getAttribute(attribute);
}

Expand Down

0 comments on commit 77fd240

Please sign in to comment.