mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-12-30 13:27:37 +00:00
Fix %rank%/%coloredrank% not showing actual rank (#143)
This commit is contained in:
parent
1951d9adea
commit
a166154e48
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user