From ff8b0300ae3fdfedd9dace044a18706682d73aec Mon Sep 17 00:00:00 2001 From: nossr50 Date: Mon, 28 May 2012 13:44:34 -0700 Subject: [PATCH] Make the MOTD prettier about the perks --- .../java/com/gmail/nossr50/listeners/PlayerListener.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java index 8f14cf971..46ae5af8b 100644 --- a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java @@ -164,6 +164,7 @@ public class PlayerListener implements Listener { if (Config.getInstance().getMOTDEnabled() && Permissions.getInstance().motd(player)) { String prefix = ChatColor.GOLD+"[mcMMO] "; + String perkPrefix = ChatColor.RED+"[mcMMO Perks] "; player.sendMessage(prefix+ChatColor.YELLOW+"Running version " + ChatColor.DARK_AQUA + plugin.getDescription().getVersion()); //TODO: Locale @@ -178,11 +179,11 @@ public class PlayerListener implements Listener { } if(player.hasPermission("mcmmo.perks.xp.quadruple")) { - player.sendMessage(prefix+ChatColor.GREEN+"You have the Quadruple XP Perk and will receive 4x XP."); + player.sendMessage(perkPrefix+ChatColor.DARK_AQUA+"Quadruple XP - Receive 4x XP."); } else if (player.hasPermission("mcmmo.perks.xp.triple")) { - player.sendMessage(prefix+ChatColor.GREEN+"You have the Triple XP Perk and will receive 3x XP."); + player.sendMessage(perkPrefix+ChatColor.DARK_AQUA+"Triple XP - Receive 3x XP."); } else if (player.hasPermission("mcmmo.perks.xp.double")) { - player.sendMessage(prefix+ChatColor.GREEN+"You have the Double XP Perk and will receive 2x XP."); + player.sendMessage(perkPrefix+ChatColor.DARK_AQUA+"Double XP - Receive 2x XP."); } player.sendMessage(ChatColor.GOLD+"[mcMMO] "+ChatColor.GREEN+ "http://www.mcmmo.info" + ChatColor.YELLOW + " - mcMMO Website & Forums"); //TODO: Locale