tag limit

This commit is contained in:
speedxx 2020-07-23 14:33:03 -04:00
parent 8ffbff9de7
commit d6a0407e89

View file

@ -47,6 +47,12 @@ public class TagSubcommand extends Common implements CommandExecutor
tag = tag.replace("%tag%", guild.getName());
if (tag.length() > 75)
{
player.sendMessage(ChatColor.RED + "Your guild tag must not be over 75 characters.");
return true;
}
for (String blacklisted : GUtil.BLACKLISTED_NAMES_AND_TAGS)
{
if (tag.equalsIgnoreCase(blacklisted))