Fixed timeout delay after ratelimit

This commit is contained in:
Norbi Peti 2016-12-22 20:57:13 +01:00
parent aeee423c5a
commit 3c16795964

View file

@ -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());
}
}