Fix compilation

This commit is contained in:
Draycia committed 2020-09-26 23:52:27 -07:00
1 parent 35ab8ec954
commit 901e243d1e
7 files changed
+42 -27

No files matched your search

@@ -97,20 +97,8 @@ public class BukkitChatListener implements Listener {
}
} else {
Bukkit.getScheduler().runTaskAsynchronously(this.carbonChat, () -> {
final Map<ChatUser, Component> messages =
selectedChannel.parseMessage(user, recipients, event.getMessage(), false);
for (final Map.Entry<ChatUser, Component> entry : messages.entrySet()) {
if (entry.getValue().equals(TextComponent.empty())) {
continue;
}
entry.getKey().sendMessage(entry.getValue());
if (user.equals(entry.getKey())) {
this.carbonChat.messageProcessor().audiences().console().sendMessage(entry.getValue());
}
}
selectedChannel.sendComponentsAndLog(
selectedChannel.parseMessage(user, recipients, event.getMessage(), false));
if (this.carbonChat.getConfig().getBoolean("show-tips")) {
this.carbonChat.logger().info("Tip: Sync chat event! I cannot set the message format due to this. :(");