Add colors to MOTD

This commit is contained in:
Trever Fischer 2012-04-02 20:58:27 -04:00
parent 0a2fa38ed7
commit 86a44e9163

View File

@ -28,6 +28,7 @@ import org.bukkit.plugin.ServicePriority;
import org.bukkit.plugin.ServicesManager; import org.bukkit.plugin.ServicesManager;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
import org.bukkit.ChatColor;
import net.milkbowl.vault.economy.Economy; import net.milkbowl.vault.economy.Economy;
@ -106,7 +107,7 @@ public class Plugin extends JavaPlugin {
} }
if (motd != null) { if (motd != null) {
for(String msg : motd) { for(String msg : motd) {
sender.sendMessage(msg); sender.sendMessage(msg.replace('&', ChatColor.COLOR_CHAR));
} }
} }
} }