From 86a44e91633a9977eb53d2d01f928901a20da734 Mon Sep 17 00:00:00 2001 From: Trever Fischer Date: Mon, 2 Apr 2012 20:58:27 -0400 Subject: [PATCH] Add colors to MOTD --- src/main/java/us/camin/Plugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/us/camin/Plugin.java b/src/main/java/us/camin/Plugin.java index 1a87084..6b26378 100644 --- a/src/main/java/us/camin/Plugin.java +++ b/src/main/java/us/camin/Plugin.java @@ -28,6 +28,7 @@ import org.bukkit.plugin.ServicePriority; import org.bukkit.plugin.ServicesManager; import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.inventory.ItemStack; +import org.bukkit.ChatColor; import net.milkbowl.vault.economy.Economy; @@ -106,7 +107,7 @@ public class Plugin extends JavaPlugin { } if (motd != null) { for(String msg : motd) { - sender.sendMessage(msg); + sender.sendMessage(msg.replace('&', ChatColor.COLOR_CHAR)); } } }