[BUG] Fix error with Verify command when it encounters an already verified account
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
version_major=0
|
version_major=0
|
||||||
version_minor=0
|
version_minor=0
|
||||||
version_patch=25
|
version_patch=26
|
||||||
|
|
||||||
shade_group=com.hypherionmc.sdlink.shaded.
|
shade_group=com.hypherionmc.sdlink.shaded.
|
||||||
|
|
||||||
|
@@ -45,6 +45,9 @@ public class VerifyAccountCommand extends SDLinkSlashCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (SDLinkAccount account : accounts) {
|
for (SDLinkAccount account : accounts) {
|
||||||
|
if (account.getVerifyCode() == null)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (account.getVerifyCode().equalsIgnoreCase(String.valueOf(mcCode))) {
|
if (account.getVerifyCode().equalsIgnoreCase(String.valueOf(mcCode))) {
|
||||||
MinecraftAccount minecraftAccount = MinecraftAccount.standard(account.getUsername());
|
MinecraftAccount minecraftAccount = MinecraftAccount.standard(account.getUsername());
|
||||||
Result result = minecraftAccount.verifyAccount(event.getMember(), event.getGuild());
|
Result result = minecraftAccount.verifyAccount(event.getMember(), event.getGuild());
|
||||||
|
Reference in New Issue
Block a user