▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/StaffChat
StaffChat

StaffChat

A private chat channel for your server's staff team.

Оцените первым
47
0
Все версииStaffChat 1.0.2

StaffChat 1.0.2

Release16.04.2026

Список изменений

[1.0.2] — 2026-04-16

Fixed

  • Staff messages STILL leaked through DCIntegration after 1.0.1. Reported by SYLX again. Disassembling dcintegration-fabric-3.0.7.2-1.21.jar revealed the actual hook: de.erdbeerbaerlp.dcintegration.fabric.mixin.ChatMixin uses @Redirect to wrap the PlayerManager.broadcast(SignedMessage, …) call inside ServerPlayNetworkHandler.handleDecoratedMessage(). At the bytecode level, the broadcast invocation is REPLACED by their handler — which forwards the message to Discord and (typically) calls broadcast itself. The 1.0.1 phase-ordering fix was useless here because Fabric's ALLOW_CHAT_MESSAGE event fires INSIDE PlayerManager.broadcast, which means by the time the event would fire, DCIntegration had already POSTed to Discord.

    The real fix is a Mixin of our own: ServerPlayNetworkHandlerMixin injects at HEAD of handleDecoratedMessage with cancellable = true. This runs BEFORE the method body (and therefore before any @Redirect on calls inside the body). When we cancel, the entire body is skipped — DCIntegration's @Redirect never fires, the broadcast call never happens, no Discord post.

    Only staff-chat traffic is intercepted (toggle mode + @ quick-prefix). Regular global chat passes through unchanged so DCIntegration continues to mirror it normally.

Notes for server operators

  • Drop the new jar in mods/ and restart. No config changes.
  • The 1.0.1 phase-ordered listener is left in place as a fallback for servers running chat-bridge mods that DON'T use Mixins (the listener
    • the mixin can both fire safely; whichever runs first cancels the message).
  • This fix is robust against any chat-bridge mod that hooks at or below PlayerManager.broadcast (the most common pattern). A bridge that hooks ServerPlayNetworkHandler.handleChatMessage (the much earlier entry point, before signature decoration) would still see the message — that's a much more invasive integration and isn't the case for DCIntegration / Styled Chat / simple-discord-bridge / any mainstream Fabric chat bridge I've seen.

Файлы

staffchat-1.0.2.jar(625.40 KiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

1.0.2

Загрузчики

Fabric

Версии игры

1.21.1

Загрузок

30

Дата публикации

16.04.2026

Загрузил

ID версии

Главная