From a166154e4818771b697811b0f9c6eba89a6eb281 Mon Sep 17 00:00:00 2001 From: Nathan Curran <30569566+Focusvity@users.noreply.github.com> Date: Tue, 13 Aug 2019 22:55:01 +1000 Subject: [PATCH] Fix %rank%/%coloredrank% not showing actual rank (#143) --- .../totalfreedom/totalfreedommod/command/Command_vanish.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)