Skip to content

Commit

Permalink
fix update message
Browse files Browse the repository at this point in the history
  • Loading branch information
Semx11 committed Nov 27, 2018
1 parent c9969af commit b3803c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/main/java/me/semx11/autotip/core/SessionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@ public void checkVersions() {
.send())
.sendKey("changelogHeader");
versions.forEach(info -> {
messageUtil.getKeyHelper("update")
.sendKey("version", info.getVersion())
.sendKey("severity", info.getSeverity().toColoredString());
messageUtil.sendKey("update.version", info.getVersion(),
info.getSeverity().toColoredString());
info.getChangelog().forEach(s -> messageUtil.sendKey("update.logEntry", s));
});
messageUtil.separator();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/me/semx11/autotip/util/VersionInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public String toColoredString() {
color = ChatColor.YELLOW;
break;
case CRITICAL:
color = ChatColor.DARK_RED;
color = ChatColor.RED;
break;
}
return color + this.toString();
Expand Down

0 comments on commit b3803c2

Please sign in to comment.