Fix issue in VentureChatIntegration

This commit is contained in:
Vankka 2023-07-15 22:12:40 +03:00
parent 26c472d0b8
commit 85d40a061b
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0

View File

@ -144,7 +144,6 @@ public class VentureChatIntegration extends PluginIntegration<BukkitDiscordSRV>
@Override
public void sendMessage(@NotNull MinecraftComponent component) {
Component comp = ComponentUtil.fromAPI(component);
for (MineverseChatPlayer player : MineverseChatAPI.getMineverseChatPlayers()) {
if (!player.isListening(channel.getName())) {
continue;
@ -159,6 +158,7 @@ public class VentureChatIntegration extends PluginIntegration<BukkitDiscordSRV>
continue;
}
Component comp = ComponentUtil.fromAPI(component);
if (player.hasFilter() && channel.isFiltered()) {
comp = comp.replaceText(
TextReplacementConfig.builder()