mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +00:00
Fix ignores for cross-server messages
This commit is contained in:
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()) {
|
for (final var recipient : CarbonChatProvider.carbonChat().server().players()) {
|
||||||
if (recipient.hasPermission(messagePacket.channelPermission() + ".see")) {
|
if (recipient.hasPermission(messagePacket.channelPermission() + ".see")) {
|
||||||
if (recipient.hasPermission("carbon.crossserver")) {
|
if (recipient.hasPermission("carbon.crossserver")) {
|
||||||
|
if (recipient.ignoring(messagePacket.userId())) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
recipient.sendMessage(component);
|
recipient.sendMessage(component);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user