diff --git a/common/src/main/java/net/draycia/carbon/common/channels/ConfigChatChannel.java b/common/src/main/java/net/draycia/carbon/common/channels/ConfigChatChannel.java index 99c89c84..ee6d635f 100644 --- a/common/src/main/java/net/draycia/carbon/common/channels/ConfigChatChannel.java +++ b/common/src/main/java/net/draycia/carbon/common/channels/ConfigChatChannel.java @@ -48,7 +48,6 @@ import net.kyori.adventure.text.format.TextDecoration; import net.kyori.adventure.text.minimessage.MiniMessage; import net.kyori.adventure.text.minimessage.tag.resolver.TagResolver; import net.kyori.adventure.text.minimessage.tag.standard.StandardTags; -import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer; import net.kyori.moonshine.Moonshine; import net.kyori.moonshine.exception.scan.UnscannableMethodException; import net.kyori.moonshine.strategy.StandardPlaceholderResolverStrategy; diff --git a/fabric/src/main/java/net/draycia/carbon/fabric/chat/MessageRecipientFilter.java b/fabric/src/main/java/net/draycia/carbon/fabric/chat/MessageRecipientFilter.java index 352970a4..cefa4433 100644 --- a/fabric/src/main/java/net/draycia/carbon/fabric/chat/MessageRecipientFilter.java +++ b/fabric/src/main/java/net/draycia/carbon/fabric/chat/MessageRecipientFilter.java @@ -1,3 +1,22 @@ +/* + * CarbonChat + * + * Copyright (c) 2021 Josua Parks (Vicarious) + * Contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package net.draycia.carbon.fabric.chat; import net.draycia.carbon.api.CarbonChatProvider; @@ -13,13 +32,13 @@ public class MessageRecipientFilter { private final ServerPlayer sender; private final @MonotonicNonNull ChatChannel channel; - public MessageRecipientFilter(final ServerPlayer sender, @Nullable ChatChannel channel) { + public MessageRecipientFilter(final ServerPlayer sender, final @Nullable ChatChannel channel) { this.sender = sender; this.channel = channel; } public boolean shouldFilterMessageTo(final ServerPlayer serverPlayer) { - final ComponentPlayerResult authorResult = CarbonChatProvider.carbonChat().server().userManager().carbonPlayer(sender.getUUID()).join(); + final ComponentPlayerResult authorResult = CarbonChatProvider.carbonChat().server().userManager().carbonPlayer(this.sender.getUUID()).join(); final ComponentPlayerResult recipientResult = CarbonChatProvider.carbonChat().server().userManager().carbonPlayer(serverPlayer.getUUID()).join(); final @MonotonicNonNull CarbonPlayer author = authorResult.player(); diff --git a/fabric/src/main/java/net/draycia/carbon/fabric/mixin/PlayerListAccessor.java b/fabric/src/main/java/net/draycia/carbon/fabric/mixin/PlayerListAccessor.java index cb86d92b..b9904015 100644 --- a/fabric/src/main/java/net/draycia/carbon/fabric/mixin/PlayerListAccessor.java +++ b/fabric/src/main/java/net/draycia/carbon/fabric/mixin/PlayerListAccessor.java @@ -1,3 +1,22 @@ +/* + * CarbonChat + * + * Copyright (c) 2021 Josua Parks (Vicarious) + * Contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package net.draycia.carbon.fabric.mixin; import java.util.function.Predicate;