mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-23 00:21:26 +01:00
Fix less strict length check on messageQueue add rather than iteration
This commit is contained in:
parent
b473460ffc
commit
d4ddc87d81
@ -73,7 +73,7 @@ public class ConsoleInjector extends AbstractAppender {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//noinspection UnstableApiUsage
|
//noinspection UnstableApiUsage
|
||||||
messageQueue.addAll(Splitter.fixedLength(Message.MAX_CONTENT_LENGTH).splitToList(
|
messageQueue.addAll(Splitter.fixedLength(Message.MAX_CONTENT_LENGTH - 2).splitToList(
|
||||||
MessageUtil.formatMessage(jda.getSettings().getConsoleFormat(),
|
MessageUtil.formatMessage(jda.getSettings().getConsoleFormat(),
|
||||||
TimeFormat.TIME_LONG.format(Instant.now()),
|
TimeFormat.TIME_LONG.format(Instant.now()),
|
||||||
event.getLevel().name(),
|
event.getLevel().name(),
|
||||||
|
Loading…
Reference in New Issue
Block a user