# racked.ru — ChatChat channels.yml
# Source migration: CarbonChat 3.0.0-beta.36 → ChatChat (HelpChat fork) 1.0.0-SNAPSHOT
# Translated 2026-05-07 from /data/plugins/CarbonChat/channels/global.conf

# All players land here on join. No permission required to TALK or SEE
# (matches Carbon `default-channel` + LP grants `carbon.channel.global.{see,speak}`).
default-channel: 'global'

channels:
  global:
    # Aliases to switch back into global if anyone toggles out. Keep them minimal —
    # racked.ru philosophy is one canonical chat. /pm is canonical for PMs (s8n exec lock).
    # `global` is a reserved slot in ChatChat; this just registers the toggle alias.
    toggle-command:
      - 'global'
    # Carbon had quick-prefix="" (disabled). ChatChat uses message-prefix the same way.
    message-prefix: ''
    # PAPI placeholder %chatchat_channel_prefix% — kept empty since racked.ru displays
    # NO channel tag (single channel + already-prefixed LP rank handles all visual distinction).
    channel-prefix: ''
    formats:
      # Single format = single rank-tier visual. Per-recipient rendering means
      # PAPI %luckperms_prefix% is resolved against the SENDER (the bug-fix vs Carbon).
      # Kyorifier converts the legacy &-codes from LP prefixes into MiniMessage at render time.
      default-channel:
        priority: 1
        parts:
          # Carbon original: `<luckperms_prefix><white><display_name></white> <luckperms_suffix><dark_gray>—</dark_gray> <gray><message></gray>`
          # ChatChat split:
          prefix:
            # %luckperms_prefix% returns "&8[&4⛧&8]&r " etc. — Kyorifier handles & → MM.
            - '%luckperms_prefix%'
          name:
            # EssentialsX nicknames flow through %player_displayname%; matches Carbon's <display_name>.
            - '<white>%player_displayname%</white>'
          suffix:
            # No LP suffixes are configured today (lp export shows none) — placeholder kept
            # so future suffix tiers light up without a config touch.
            - '%luckperms_suffix%'
          divider:
            - ' <dark_gray>—</dark_gray> '
          message:
            - '<gray><message></gray>'
    # Carbon had radius=-1 (server-wide). Match.
    radius: -1
