[FIX] Remove verifyUsername

This commit is contained in:
Gravita 2021-12-15 18:37:56 +07:00
parent b496d60b40
commit 589477888f
5 changed files with 4 additions and 6 deletions

View file

@ -15,7 +15,7 @@ public final class PlayerProfile {
public PlayerProfile(UUID uuid, String username, Texture skin, Texture cloak) {
this.uuid = Objects.requireNonNull(uuid, "uuid");
this.username = VerifyHelper.verifyUsername(username);
this.username = username;
this.skin = skin;
this.cloak = cloak;
}

View file

@ -14,7 +14,7 @@ public final class CheckServerRequest extends Request<CheckServerRequestEvent> i
public CheckServerRequest(String username, String serverID) {
this.username = VerifyHelper.verifyUsername(username);
this.username = username;
this.serverID = VerifyHelper.verifyServerID(serverID);
}

View file

@ -18,7 +18,7 @@ public final class JoinServerRequest extends Request<JoinServerRequestEvent> imp
public JoinServerRequest(String username, String accessToken, String serverID) {
this.username = VerifyHelper.verifyUsername(username);
this.username = username;
this.accessToken = accessToken;
this.serverID = VerifyHelper.verifyServerID(serverID);
}

View file

@ -21,8 +21,6 @@ public BatchProfileByUsernameRequest(String... usernames) throws IOException {
this.list[i].username = usernames[i];
}
IOHelper.verifyLength(usernames.length, IOHelper.MAX_BATCH_SIZE);
for (String username : usernames)
VerifyHelper.verifyUsername(username);
}
@Override

View file

@ -12,7 +12,7 @@ public final class ProfileByUsernameRequest extends Request<ProfileByUsernameReq
public ProfileByUsernameRequest(String username) {
this.username = VerifyHelper.verifyUsername(username);
this.username = username;
}
@Override