mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
Eliminate all length requirements for username lengths GH-226
This commit is contained in:
@@ -113,10 +113,6 @@ public class ACFBungeeUtil {
|
||||
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 class ACFSpongeUtil {
|
||||
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 class ACFVelocityUtil {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user