Change nickname character length to 3 (#149)

* You can have minimum of 3 characters in your name

* Another one
This commit is contained in:
Nathan Curran 2019-10-21 09:02:11 +11:00 committed by Ivan
parent 4f339b29b8
commit 2a168ece3d
2 changed files with 5 additions and 5 deletions

View File

@ -35,9 +35,9 @@ public class Command_nicknyan extends FreedomCommand
msg("That nickname contains invalid characters.");
return true;
}
else if (nickPlain.length() < 4 || nickPlain.length() > 30)
else if (nickPlain.length() < 3 || nickPlain.length() > 30)
{
msg("Your nickname must be between 4 and 30 characters long.");
msg("Your nickname must be between 3 and 30 characters long.");
return true;
}

View File

@ -29,9 +29,9 @@ public class Command_rainbownick extends FreedomCommand
return true;
}
if (nickPlain.length() < 4 || nickPlain.length() > 30)
if (nickPlain.length() < 3 || nickPlain.length() > 30)
{
msg("Your nickname must be between 4 and 30 characters long.");
msg("Your nickname must be between 3 and 30 characters long.");
return true;
}
@ -56,4 +56,4 @@ public class Command_rainbownick extends FreedomCommand
return true;
}
}
}