Login messages

Last commit from me. Don't have the power but to me Packs is the new Lead Developer
This commit is contained in:
Seth
2020-10-25 09:27:56 -07:00
parent 2ecfd9610f
commit 6e84fdad23
6 changed files with 27 additions and 14 deletions

View File

@ -37,7 +37,7 @@ public class Command_loginmessage extends FreedomCommand
msg("Your login message must contain your rank. Use either %rank% or %coloredrank% to specify where you want the rank", ChatColor.RED);
return true;
}
int length = message.replace("%name%", "").replace("%rank%", "").replace("%coloredrank%", "").replace("%det%", "").length();
int length = message.replace("%name%", "").replace("%rank%", "").replace("%coloredrank%", "").replace("%art%", "").length();
if (length > 100)
{
msg("Your login message cannot be more than 100 characters (excluding your rank and your name)", ChatColor.RED);