Fixed timeout delay after ratelimit
This commit is contained in:
parent
aeee423c5a
commit
3c16795964
1 changed files with 2 additions and 1 deletions
|
@ -111,6 +111,7 @@ public class MCChatListener implements Listener, IListener<MessageReceivedEvent>
|
|||
Thread.sleep(100);
|
||||
break;
|
||||
} catch (RateLimitException e) {
|
||||
if (e.getRetryDelay() > 0)
|
||||
Thread.sleep(e.getRetryDelay());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue