mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 09:15:38 +00:00
this has been broken for like a year
This commit is contained in:
parent
fa51976ea5
commit
7d19de5dfa
@ -41,11 +41,16 @@ public class Command_vanish extends FreedomCommand
|
|||||||
msg(ChatColor.GOLD + "You have been unvanished.");
|
msg(ChatColor.GOLD + "You have been unvanished.");
|
||||||
if (admin.hasLoginMessage())
|
if (admin.hasLoginMessage())
|
||||||
{
|
{
|
||||||
loginMsg = FUtil.colorize(admin.getLoginMessage()).replace("%rank%", plugin.rm.getDisplay(admin).getName()).replace("%coloredrank%", plugin.rm.getDisplay(admin).getColoredName());
|
loginMsg = FUtil.colorize(admin.getLoginMessage()).replace("%rank%", plugin.rm.getDisplay(admin).getName()).replace("%coloredrank%", plugin.rm.getDisplay(admin).getColoredName()).replace("%name%", admin.getName());
|
||||||
}
|
}
|
||||||
if (!silent)
|
if (!silent)
|
||||||
{
|
{
|
||||||
FUtil.bcastMsg(ChatColor.AQUA + sender.getName() + " is " + loginMsg);
|
String beginning = sender.getName() + " is ";
|
||||||
|
if (admin.getLoginMessage().contains("%name%"))
|
||||||
|
{
|
||||||
|
beginning = "";
|
||||||
|
}
|
||||||
|
FUtil.bcastMsg(ChatColor.AQUA + beginning + loginMsg);
|
||||||
FUtil.bcastMsg(playerSender.getName() + " joined the game.", ChatColor.YELLOW);
|
FUtil.bcastMsg(playerSender.getName() + " joined the game.", ChatColor.YELLOW);
|
||||||
plugin.dc.messageChatChannel("**" + playerSender.getName() + " joined the server" + "**");
|
plugin.dc.messageChatChannel("**" + playerSender.getName() + " joined the server" + "**");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user