[BUG] Fix error with Verify command when it encounters an already verified account

This commit is contained in:
2023-10-23 19:43:35 +02:00
parent 5780fbe62d
commit e68a70b3b2
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
version_major=0
version_minor=0
version_patch=25
version_patch=26
shade_group=com.hypherionmc.sdlink.shaded.

View File

@@ -45,6 +45,9 @@ public class VerifyAccountCommand extends SDLinkSlashCommand {
}
for (SDLinkAccount account : accounts) {
if (account.getVerifyCode() == null)
continue;
if (account.getVerifyCode().equalsIgnoreCase(String.valueOf(mcCode))) {
MinecraftAccount minecraftAccount = MinecraftAccount.standard(account.getUsername());
Result result = minecraftAccount.verifyAccount(event.getMember(), event.getGuild());