Fix ignores for cross-server messages

This commit is contained in:
Draycia committed 2023-03-26 20:18:02 -07:00
1 parent 10e0270407
commit 2ee7c85a35
1 file changed
+4
@@ -66,6 +66,10 @@ public final class CarbonChatPacketHandler extends AbstractMessagingHandler {
for (final var recipient : CarbonChatProvider.carbonChat().server().players()) {
if (recipient.hasPermission(messagePacket.channelPermission() + ".see")) {
if (recipient.hasPermission("carbon.crossserver")) {
if (recipient.ignoring(messagePacket.userId())) {
continue;
}
recipient.sendMessage(component);
}
}