mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Fix compilation
This commit is contained in:
1 parent
35ab8ec954
commit
901e243d1e
7 files changed
+42
-27
No files matched your search
+2
-14
@@ -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. :(");
|
||||
|
||||
Reference in new issue
Block a user