Skip to main content

Configuration

Guide to configuring HyperFactions for your server.

Configuration

HyperFactions is highly configurable. This guide explains the key configuration options for getting started.

For Server Owners

This guide covers common configuration scenarios. For a complete reference of all 47 configuration options, see Configuration Reference.

Configuration Files

HyperFactions uses multiple configuration files:

mods/com.hyperfactions_HyperFactions/
├── config.json               ← Main configuration (covered in this guide)
└── config/                   ← Module configurations
    ├── backup.json           ← Backup system settings
    ├── chat.json             ← Chat formatting
    ├── debug.json            ← Debug logging
    ├── economy.json          ← Economy integration
    └── faction-permissions.json  ← Default territory permissions

The main config.json contains 47 options covering faction limits, power, claims, combat, relations, and more. Module configs in the config/ subdirectory handle specialized features.

Applying Changes

After making changes to configuration files, run /f admin reload to apply them without restarting the server.

Tip

See the Configuration Reference for complete documentation of all configuration files.

Essential Settings

These are the most important settings to configure for your server.

Faction Limits

OptionDefaultDescription
faction.maxMembers50Maximum members per faction
faction.maxNameLength24Maximum faction name length
faction.minNameLength3Minimum faction name length
faction.allowColorstrueAllow color codes in names

Power System

The power system is the core of HyperFactions. These settings affect how factions claim and defend territory:

OptionDefaultDescription
power.maxPlayerPower20.0Maximum power per player
power.startingPower10.0Power new players start with
power.powerPerClaim2.0Power required per claim
power.deathPenalty1.0Power lost on death
power.regenPerMinute0.1Power regenerated per minute
power.regenWhenOfflinefalseRegenerate while offline

Understanding Power

With defaults, players regenerate 6 power per hour (0.1 × 60). A 5-member faction at max power (100) can hold 50 claims (100 ÷ 2).

Territory Claims

OptionDefaultDescription
claims.maxClaims100Hard cap on faction claims
claims.onlyAdjacentfalseRequire connected claims
claims.decayEnabledtrueEnable inactive claim decay
claims.decayDaysInactive30Days before decay starts

Combat Settings

OptionDefaultDescription
combat.tagDurationSeconds15Combat tag duration
combat.allyDamagefalseAllow ally damage
combat.factionDamagefalseAllow faction damage
combat.taggedLogoutPenaltytruePenalize combat logout
combat.logoutPowerLoss1.0Power lost on combat logout

Spawn Protection

OptionDefaultDescription
combat.spawnProtection.enabledtrueEnable spawn protection
combat.spawnProtection.durationSeconds5Protection duration
combat.spawnProtection.breakOnAttacktrueRemove on attack
combat.spawnProtection.breakOnMovetrueRemove on movement

Diplomatic Relations

OptionDefaultDescription
relations.maxAllies10Max ally factions (-1 = unlimited)
relations.maxEnemies-1Max enemy factions (-1 = unlimited)

Server Type Configurations

PvP-Focused Server

High-stakes combat with meaningful consequences:

{
  "power": {
    "maxPlayerPower": 15,
    "startingPower": 10,
    "deathPenalty": 2.0,
    "regenPerMinute": 0.15,
    "powerPerClaim": 1.5
  },
  "combat": {
    "tagDurationSeconds": 20,
    "taggedLogoutPenalty": true,
    "logoutPowerLoss": 2.0
  },
  "relations": {
    "maxAllies": 3,
    "maxEnemies": -1
  }
}

Effects:

  • Lower max power = smaller empires
  • Higher death penalty = wars matter more
  • Faster regen = quicker recovery
  • Limited allies = more conflict

Casual/Building Server

Relaxed settings for creative communities:

{
  "power": {
    "maxPlayerPower": 50,
    "startingPower": 25,
    "deathPenalty": 0,
    "regenPerMinute": 0.05,
    "powerPerClaim": 5
  },
  "combat": {
    "tagDurationSeconds": 0,
    "factionDamage": false,
    "allyDamage": false
  },
  "relations": {
    "maxAllies": -1,
    "maxEnemies": 0
  }
}

Effects:

  • No combat penalties
  • Large territory for builders
  • No PvP consequences
  • Unlimited friends, no enemies

Roleplay Server

Balanced settings encouraging diplomacy:

{
  "power": {
    "maxPlayerPower": 30,
    "startingPower": 15,
    "deathPenalty": 0.5,
    "regenPerMinute": 0.1,
    "powerPerClaim": 3
  },
  "relations": {
    "maxAllies": 5,
    "maxEnemies": 5
  },
  "claims": {
    "onlyAdjacent": true,
    "decayDaysInactive": 14
  }
}

Effects:

  • Moderate power economy
  • Limited diplomacy encourages RP
  • Connected territories required
  • Faster decay removes abandoned areas

Teleportation Settings

Configure faction home teleportation:

OptionDefaultDescription
teleport.warmupSeconds5Warmup before teleport
teleport.cooldownSeconds300Cooldown between uses
teleport.cancelOnMovetrueCancel on movement
teleport.cancelOnDamagetrueCancel on damage

For the /f stuck command:

OptionDefaultDescription
stuck.warmupSeconds30Longer warmup (escape tool)
stuck.cooldownSeconds3005-minute cooldown

Automatic Features

Auto-Save

OptionDefaultDescription
autoSave.enabledtrueEnable auto-save
autoSave.intervalMinutes5Save interval

Update Checking

OptionDefaultDescription
updates.enabledtrueCheck for updates
updates.releaseChannel"stable""stable" or "prerelease"

Permission Behavior

When HyperPerms is not installed:

OptionDefaultDescription
permissions.adminRequiresOptrueAdmins need OP
permissions.fallbackBehavior"deny"Default permission state

Without HyperPerms

If you don't use HyperPerms, set fallbackBehavior to "allow" for basic commands to work, or grant OP to admins.

World Filtering

Control which worlds allow faction claims:

{
  "claims": {
    "worldWhitelist": ["default", "dungeon_realm"],
    "worldBlacklist": []
  }
}

Rules:

  1. If worldWhitelist is not empty, only listed worlds allow claims
  2. If empty, worldBlacklist blocks specific worlds
  3. If both empty, all worlds allow claims

Message Customization

OptionDefaultDescription
messages.prefix§b[HyperFactions]§r Message prefix
messages.primaryColor#00FFFFPrimary accent color

Next Steps

Now that you've configured HyperFactions:

  1. Set up permissions if using HyperPerms
  2. Create zones for spawn and arenas
  3. Test your config by creating a faction
  4. See the Configuration Reference for all 47 options

Related Topics