BedrockDeliveryDebugLog

public final class BedrockDeliveryDebugLog

Conditional debug logging for the proxy-side Bedrock pack delivery pipeline.

Toggleable diagnostic for "Bedrock player connected, got a pack URL, but something's wrong with the pack contents / Geyser-mapping handshake." Complements FMM's per-bone display logging on the other side of the wire — together they let an operator grep "what did the proxy announce" + "what did FMM try to display" for a single Bedrock session and see both halves.

Off by default. Toggled at runtime via /rspm debug bedrock on|off on either proxy (Velocity or Bungee); onSession consults this flag to decide whether to emit per-session log lines. The state is not persisted anywhere and resets to off on proxy restart.

Static-mutable on purpose — wiring this through a constructor chain (config → plugin → NetworkSync → GeyserBinder) would force every existing call site to thread an extra argument for what is a debug-only feature. Threading: the field is volatile, toggled rarely from command threads, read on every Bedrock session load.

Functions

Link copied to clipboard
public static String handleToggleCommand(Array<String> args)
Shared logic for the /rspm debug bedrock [on|off] subcommand on both proxies.
Link copied to clipboard
public static boolean isEnabled()