From 380705fe29109127b9633af470b13379b7889aaf Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 3 Jun 2016 14:30:42 +0200 Subject: [PATCH] Fixed update-available message not displayed correctly in console --- src/de/epiceric/shopchest/ShopChest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/epiceric/shopchest/ShopChest.java b/src/de/epiceric/shopchest/ShopChest.java index 98cee02..31869b7 100644 --- a/src/de/epiceric/shopchest/ShopChest.java +++ b/src/de/epiceric/shopchest/ShopChest.java @@ -24,6 +24,7 @@ import de.epiceric.shopchest.utils.UpdateChecker.UpdateCheckerResult; import net.milkbowl.vault.economy.Economy; import net.milkbowl.vault.permission.Permission; import org.bukkit.Bukkit; +import org.bukkit.ChatColor; import org.bukkit.entity.Player; import org.bukkit.plugin.Plugin; import org.bukkit.plugin.RegisteredServiceProvider; @@ -182,7 +183,7 @@ public class ShopChest extends JavaPlugin { latestVersion = uc.getVersion(); downloadLink = uc.getLink(); isUpdateNeeded = true; - Bukkit.getConsoleSender().sendMessage("[ShopChest] " + Config.update_available(latestVersion)); + Bukkit.getConsoleSender().sendMessage("[ShopChest] " + ChatColor.translateAlternateColorCodes('&', Config.update_available(latestVersion))); for (Player p : getServer().getOnlinePlayers()) { if (p.isOp() || perm.has(p, "shopchest.notification.update")) {