Skip to content
Permalink
Browse files

Eliminate all length requirements for username lengths GH-226

  • Loading branch information...
chickeneer committed Jul 22, 2019
1 parent 4b9bab6 commit 91e7b9d39bfd349c675a85e579ee26b020f1003d
@@ -113,10 +113,6 @@ public static boolean isChatColorAColor(ChatColor chatColor) {
public static ProxiedPlayer findPlayerSmart(CommandIssuer issuer, String search) {
CommandSender requester = issuer.getIssuer();
String name = ACFUtil.replace(search, ":confirm", "");
if (name.length() < 2) {
issuer.sendError(MinecraftMessageKeys.USERNAME_TOO_SHORT);
return null;
}
if (!isValidName(name)) {
issuer.sendError(MinecraftMessageKeys.IS_NOT_A_VALID_NAME, "{name}", name);
return null;
@@ -17,10 +17,6 @@ public static Player findPlayerSmart(CommandIssuer issuer, String search) {
return null;
}
String name = ACFUtil.replace(search, ":confirm", "");
if (name.length() < 2) {
issuer.sendError(MinecraftMessageKeys.USERNAME_TOO_SHORT);
return null;
}
if (!isValidName(name)) {
issuer.sendError(MinecraftMessageKeys.IS_NOT_A_VALID_NAME, "{name}", name);
return null;
@@ -24,10 +24,6 @@ public static TextComponent color(String message) {
public static Player findPlayerSmart(ProxyServer server, CommandIssuer issuer, String search) {
CommandSource requester = issuer.getIssuer();
String name = ACFUtil.replace(search, ":confirm", "");
if (name.length() < 2) {
issuer.sendError(MinecraftMessageKeys.USERNAME_TOO_SHORT);
return null;
}
if (!isValidName(name)) {
issuer.sendError(MinecraftMessageKeys.IS_NOT_A_VALID_NAME, "{name}", name);
return null;

0 comments on commit 91e7b9d

Please sign in to comment.
You can’t perform that action at this time.