mirror of
https://github.com/TotalFreedomMC/TFGuilds.git
synced 2024-12-22 16:05:00 +00:00
tag limit
This commit is contained in:
parent
8ffbff9de7
commit
d6a0407e89
1 changed files with 6 additions and 0 deletions
|
@ -47,6 +47,12 @@ public class TagSubcommand extends Common implements CommandExecutor
|
||||||
|
|
||||||
tag = tag.replace("%tag%", guild.getName());
|
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)
|
for (String blacklisted : GUtil.BLACKLISTED_NAMES_AND_TAGS)
|
||||||
{
|
{
|
||||||
if (tag.equalsIgnoreCase(blacklisted))
|
if (tag.equalsIgnoreCase(blacklisted))
|
||||||
|
|
Loading…
Reference in a new issue