Skip to main content

Config: World Map

Configuration reference for worldmap.json — map display, player visibility, and refresh modes.

World Map Configuration

File Location

mods/com.hyperfactions_HyperFactions/config/worldmap.json

Controls world map display, player visibility filtering, and map refresh behavior.

Reload Required

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

Display Settings

KeyTypeDefaultDescription
showFactionTagsbooltrueShow faction tags on claimed chunks

Player Visibility

Controls whether players can see other players on the map based on faction relation.

KeyTypeDefaultDescription
playerVisibility.enabledboolfalseEnable relation-based player filtering
playerVisibility.showOwnFactionbooltrueShow own faction members
playerVisibility.showAlliesbooltrueShow allied faction members
playerVisibility.showNeutralsboolfalseShow neutral faction members
playerVisibility.showEnemiesboolfalseShow enemy faction members
playerVisibility.showFactionlessPlayersboolfalseShow players without a faction
playerVisibility.showFactionlessToFactionlessbooltrueShow factionless players to other factionless players

Player Visibility

When playerVisibility.enabled is false (default), all players are visible on the map to everyone. When enabled, visibility is filtered by faction relation. Players with the hyperfactions.bypass.mapvisibility permission can always see everyone.

Refresh Mode

Controls how the map refreshes when territory changes occur.

KeyTypeDefaultDescription
refreshModestring"incremental"Refresh strategy (see options below)

Available refresh modes:

ModeDescription
proximityRefresh chunks near players. Configure with proximity.chunkRadius (32), proximity.batchIntervalTicks (30), proximity.maxChunksPerBatch (50)
incremental(default) Batch refresh changed chunks. Configure with incremental.batchIntervalTicks (30), incremental.maxChunksPerBatch (50)
debouncedWait for changes to settle before refreshing. Configure with debounced.delaySeconds (5)
immediateRefresh chunks immediately on change
manualOnly refresh on admin command

Performance

KeyTypeDefaultDescription
factionWideRefreshThresholdint200Number of chunks above which a faction-wide refresh uses the map's refresh strategy instead of immediate refresh
autoFallbackOnErrorbooltrueAutomatically fall back to incremental mode if the configured mode errors

Default Configuration

{
  "enabled": true,
  "showFactionTags": true,
  "playerVisibility": {
    "enabled": false,
    "showOwnFaction": true,
    "showAllies": true,
    "showNeutrals": false,
    "showEnemies": false,
    "showFactionlessPlayers": false,
    "showFactionlessToFactionless": true
  },
  "refreshMode": "incremental",
  "incremental": {
    "batchIntervalTicks": 30,
    "maxChunksPerBatch": 50
  },
  "factionWideRefreshThreshold": 200,
  "autoFallbackOnError": true
}