# racked.ru — ChatChat settings.yml
# Translated 2026-05-07 from /data/plugins/CarbonChat/config.conf

# Private messages — operator's canonical command is /pm (s8n exec lock).
# ChatChat ships /msg + /reply. Aliases for /pm get added via plugin.yml override
# OR via Essentials' command alias system. We keep ChatChat's defaults here and
# wire /pm as an alias in commands.yml (Bukkit-level).
private-messages:
  enabled: true
  formats:
    sender-format:
      parts:
        sender:
          - '<gray>you'
        separator:
          - ' <color:#40c9ff>-> '
        recipient:
          # PAPI relational: shows recipient's LP prefix on sender's screen — fine, it's
          # the canonical "to whom" display.
          - '%luckperms_prefix%<gray><recipient:player_name></gray>'
        message:
          - ' <#e81cff>» <white><message>'
    recipient-format:
      parts:
        sender:
          - '%luckperms_prefix%<gray>%player_name%</gray>'
        separator:
          - ' <#40c9ff>-> '
        recipient:
          - '<gray>you'
        message:
          - ' <#e81cff>» <white><message>'
    social-spy-format:
      parts:
        prefix:
          - '<gray>(spy) '
        sender:
          - '%player_name%'
        separator:
          - ' <#40c9ff>-> '
        recipient:
          - '<gray><recipient:player_name>'
        message:
          - ' <#e81cff>» <white><message>'

# Carbon had no equivalent inline-item placeholder enabled by default; ChatChat does <item>.
# YOU500 wishlist: gate behind chatchat.tag.item perm grant (added in lp-migration.sh).
item-format: '<gray>[</gray><item><gray> x <amount>]'
item-format-info: '<dark_gray><item> x <amount>'

# Mentions — matches Carbon's ping-settings (prefix=@, sound disabled).
mentions:
  prefix: '@'
  private-message: false
  sound:
    name: entity.experience_orb.pickup
    source: master
    pitch: 1
    volume: 1
  personal-format:
    parts:
      name:
        - '<hover:show_text:"<gold>You were mentioned!">'
        - '<yellow>@%player_name%'
        - '</hover>'
  channel-format:
    parts:
      name:
        - '<hover:show_text:"<gold>Channel mention">'
        - '<yellow>@everyone'
        - '</hover>'

# Carbon had no /reply expiry; ChatChat default 300s is reasonable.
last-messaged-cache-duration: 300
