From b3803c24c0fe60334ae93fdd81e38d1594b2c267 Mon Sep 17 00:00:00 2001 From: Semx11 Date: Tue, 27 Nov 2018 19:01:42 +0100 Subject: [PATCH] fix update message --- src/main/java/me/semx11/autotip/core/SessionManager.java | 5 ++--- src/main/java/me/semx11/autotip/util/VersionInfo.java | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/semx11/autotip/core/SessionManager.java b/src/main/java/me/semx11/autotip/core/SessionManager.java index 91d8131..db4ee0d 100644 --- a/src/main/java/me/semx11/autotip/core/SessionManager.java +++ b/src/main/java/me/semx11/autotip/core/SessionManager.java @@ -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(); diff --git a/src/main/java/me/semx11/autotip/util/VersionInfo.java b/src/main/java/me/semx11/autotip/util/VersionInfo.java index 6ebe830..28b62cd 100644 --- a/src/main/java/me/semx11/autotip/util/VersionInfo.java +++ b/src/main/java/me/semx11/autotip/util/VersionInfo.java @@ -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();