Even more 1.13 things

This commit is contained in:
ZeroEpoch1969
2018-07-25 22:22:19 -07:00
parent 3c46df0082
commit 551a0b2317
4 changed files with 21 additions and 6 deletions

View File

@ -142,10 +142,15 @@ 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: ");
msg("> " + ChatColor.AQUA + targetPlayer.getName() + " is " + ChatUtils.colorize(target.getLoginMessage()));
msg("> " + FUtil.colorize(msg).replace("%name%", targetPlayer.getName()));
plugin.al.save();
plugin.al.updateTables();
return true;