Update adventure and configurate

This commit is contained in:
Draycia committed 2020-10-14 00:56:57 -07:00
1 parent dc2e319511
commit 07b3ee9708
23 files changed
+100 -67

No files matched your search

@@ -9,6 +9,7 @@ import net.draycia.carbon.api.events.misc.CarbonEvents;
import net.draycia.carbon.api.users.CarbonUser;
import net.draycia.carbon.api.users.ConsoleUser;
import net.draycia.carbon.api.users.PlayerUser;
import net.kyori.adventure.identity.Identity;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.TextComponent;
import net.kyori.adventure.text.format.NamedTextColor;
@@ -178,17 +179,18 @@ public class CarbonWhisperChannel implements WhisperChannel {
@Override
public void sendComponents(@NonNull final Map<? extends CarbonUser, Component> components) {
for (final Map.Entry<? extends CarbonUser, Component> entry : components.entrySet()) {
entry.getKey().sendMessage(entry.getValue());
entry.getKey().sendMessage(Identity.nil(), entry.getValue());
}
}
@Override
public void sendComponentsAndLog(@NonNull final Map<? extends CarbonUser, Component> components) {
for (final Map.Entry<? extends CarbonUser, Component> entry : components.entrySet()) {
entry.getKey().sendMessage(entry.getValue());
entry.getKey().sendMessage(Identity.nil(), entry.getValue());
if (entry.getKey() instanceof ConsoleUser) {
this.carbonChat.messageProcessor().audiences().console().sendMessage(entry.getValue());
this.carbonChat.messageProcessor().audiences().console()
.sendMessage(Identity.nil(), entry.getValue());
}
}
}