Skip to main content

Config: Chat

Configuration reference for chat.json — chat formatting, relation colors, faction chat, and history.

Chat Configuration

File Location

mods/com.hyperfactions_HyperFactions/config/chat.json

Controls how faction tags appear in chat, relation-based color coding, faction/ally chat channels, and chat history.

Reload Required

Changes require /f admin reload or a server restart to take effect.

Chat Formatting

KeyTypeDefaultDescription
formatstringSee belowChat format template
tagDisplaystring"tag"Display mode: "tag", "name", or "none"
tagFormatstringSee belowFormat for the faction tag
noFactionTagstring""Tag for players without a faction
noFactionTagColorhex"#555555"Color for the no-faction tag
playerNameColorhex"#FFFFFF"Default player name color
prioritystring"LATE"Event priority: EARLIEST, EARLY, NORMAL, LATE, LATEST

Format templates:

  • format uses placeholders: {faction_tag}, {prefix}, {player}, {suffix}, {message}
  • tagFormat uses the {tag} placeholder for the faction tag display

Relation Colors

KeyTypeDefaultDescription
relationColors.ownhex"#00FF00"Color for same-faction members (green)
relationColors.allyhex"#FF69B4"Color for allies (pink)
relationColors.neutralhex"#AAAAAA"Color for neutral factions (gray)
relationColors.enemyhex"#FF0000"Color for enemies (red)

Faction & Ally Chat

KeyTypeDefaultDescription
factionChatColorhex"#00FFFF"Color for faction chat messages
factionChatPrefixstring"[Faction]"Prefix for faction chat messages
allyChatColorhex"#AA00AA"Color for ally chat messages
allyChatPrefixstring"[Ally]"Prefix for ally chat messages
senderNameColorhex"#FFFF55"Color for sender name in faction/ally chat
messageColorhex"#FFFFFF"Color for message text in faction/ally chat

Chat History

KeyTypeDefaultDescription
historyEnabledbooltrueEnable chat history storage
historyMaxMessagesint200Maximum messages to store per faction
historyRetentionDaysint7Days to keep chat history
historyCleanupIntervalMinutesint60Minutes between history cleanup runs

Default Configuration

{
  "enabled": true,
  "format": "{faction_tag}{prefix}{player}{suffix}: {message}",
  "tagDisplay": "tag",
  "tagFormat": "[{tag}] ",
  "noFactionTag": "",
  "noFactionTagColor": "#555555",
  "playerNameColor": "#FFFFFF",
  "priority": "LATE",
  "relationColors": {
    "own": "#00FF00",
    "ally": "#FF69B4",
    "neutral": "#AAAAAA",
    "enemy": "#FF0000"
  },
  "factionChatColor": "#00FFFF",
  "factionChatPrefix": "[Faction]",
  "allyChatColor": "#AA00AA",
  "allyChatPrefix": "[Ally]",
  "senderNameColor": "#FFFF55",
  "messageColor": "#FFFFFF",
  "historyEnabled": true,
  "historyMaxMessages": 200,
  "historyRetentionDays": 7,
  "historyCleanupIntervalMinutes": 60
}