diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_vanish.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_vanish.java index 09e4fab8..6ccc4322 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_vanish.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_vanish.java @@ -41,11 +41,11 @@ public class Command_vanish extends FreedomCommand msg(ChatColor.GOLD + "You have been unvanished."); if (admin.hasLoginMessage()) { - loginMsg = FUtil.colorize(admin.getLoginMessage()); + loginMsg = FUtil.colorize(admin.getLoginMessage()).replace("%rank%", plugin.rm.getDisplay(admin).getName()).replace("%coloredrank%", plugin.rm.getDisplay(admin).getColoredName()); } if (!silent) { - FUtil.bcastMsg(ChatColor.AQUA + (loginMsg.contains("%name%") ? "" : playerSender.getName() + " is ") + FUtil.colorize(loginMsg).replace("%name%", playerSender.getName())); + FUtil.bcastMsg(ChatColor.AQUA + loginMsg); FUtil.bcastMsg(playerSender.getName() + " joined the game", ChatColor.YELLOW); } if (admin.getTag() != null)