Skip to content

Commit

Permalink
Catch possible exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
aufdemrand committed Apr 12, 2013
1 parent 2537b86 commit 7a0203a
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -88,7 +88,9 @@ public void setColor(ChatColor color, String player) {
* @return The stored {@link ChatColor}
*/
public ChatColor getColor() {
return ChatColor.valueOf(colors.get(DEFAULT_KEY));
try {
return ChatColor.valueOf(colors.get(DEFAULT_KEY));
} catch (Exception e) { return ChatColor.YELLOW; }
}

/**
Expand Down

0 comments on commit 7a0203a

Please sign in to comment.