Minor bug fix

This commit is contained in:
2020-07-15 21:20:44 -05:00
parent 4b443a1a6c
commit 5dc66effca
6 changed files with 50 additions and 4 deletions

View File

@@ -75,6 +75,10 @@ public class PreUser {
public void setDone() {
this.done = true;
}
public int getTimeLeft() {
return timeLeft;
}
public void decrementTime() {
if(!shareGuild()) {
@@ -94,7 +98,7 @@ public class PreUser {
biscuit.log(user.getName() + " " + user.getAsMention() + " waited too long to complete the captcha. Kicking...");
biscuit.captchaLog("``" + user.getName() +"`` " + user.getAsMention() + " waited too long to complete the captcha! Kicking...");
if(biscuit.getGuild().getMember(user).getRoles().size() == 1 && PermUtil.hasDefaultRole(m) && !PermUtil.hasRewardRole(m)) {
if(m != null && m.getRoles().size() == 1 && PermUtil.hasDefaultRole(m) && !PermUtil.hasRewardRole(m)) {
biscuit.getGuild().kick(user.getId()).queue();
}