Skip to content

Commit

Permalink
Log slightly possible errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Jul 15, 2014
1 parent 334aab8 commit 6a8030b
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ public String getAttribute(Attribute attribute) {
for (String home : essUser.getHomes()) {
try {
homes.add(home + "/" + new dLocation(essUser.getHome(home)).identifySimple());
} catch (Exception e) {}
} catch (Exception e) {
dB.echoError(e);
}
}
return homes.getAttribute(attribute.fulfill(1));
}
Expand All @@ -106,12 +108,14 @@ public String getAttribute(Attribute attribute) {
// Returns a list of the locations of homes of the player.
// @plugin Essentials
// -->
if (attribute.startsWith("list_homes")) {
if (attribute.startsWith("list_home_locations")) {
dList homes = new dList();
for (String home : essUser.getHomes()) {
try {
homes.add(new dLocation(essUser.getHome(home)).identifySimple());
} catch (Exception e) {}
} catch (Exception e) {
dB.echoError(e);
}
}
return homes.getAttribute(attribute.fulfill(1));
}
Expand Down

0 comments on commit 6a8030b

Please sign in to comment.