mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-11 21:43:54 +00:00
It's 3AM so time for random commit titles: Longboi Johnson
This commit is contained in:
@ -143,22 +143,10 @@ public class Command_myadmin extends FreedomCommand
|
||||
}
|
||||
|
||||
String msg = StringUtils.join(args, " ", 1, args.length);
|
||||
if (!msg.contains("%name%"))
|
||||
{
|
||||
msg("You login message must contain your name. To add it, specify %name% where you want it.", ChatColor.RED);
|
||||
return true;
|
||||
}
|
||||
FUtil.adminAction(sender.getName(), "Setting personal login message" + (init == null ? "" : " for " + targetPlayer.getName()), false);
|
||||
target.setLoginMessage(msg);
|
||||
msg((init == null ? "Your" : targetPlayer.getName() + "'s") + " login message is now: ");
|
||||
if (msg.contains("%name%"))
|
||||
{
|
||||
msg("> " + FUtil.colorize(msg).replace("%name%", targetPlayer.getName()));
|
||||
}
|
||||
else
|
||||
{
|
||||
msg("> " + ChatColor.AQUA + targetPlayer.getName() + " is " + ChatUtils.colorize(target.getLoginMessage()));
|
||||
}
|
||||
msg("> " + ChatColor.AQUA + (msg.contains("%name%") ? "" : target.getName() + " is ") + FUtil.colorize(msg).replace("%name%", targetPlayer.getName()));
|
||||
plugin.al.save();
|
||||
plugin.al.updateTables();
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user