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
| Option | Default | Description |
|---|---|---|
faction.maxMembers | 50 | Maximum members per faction |
faction.maxNameLength | 24 | Maximum faction name length |
faction.minNameLength | 3 | Minimum faction name length |
faction.allowColors | true | Allow color codes in names |
Power System
The power system is the core of HyperFactions. These settings affect how factions claim and defend territory:
| Option | Default | Description |
|---|---|---|
power.maxPlayerPower | 20.0 | Maximum power per player |
power.startingPower | 10.0 | Power new players start with |
power.powerPerClaim | 2.0 | Power required per claim |
power.deathPenalty | 1.0 | Power lost on death |
power.regenPerMinute | 0.1 | Power regenerated per minute |
power.regenWhenOffline | false | Regenerate 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
| Option | Default | Description |
|---|---|---|
claims.maxClaims | 100 | Hard cap on faction claims |
claims.onlyAdjacent | false | Require connected claims |
claims.decayEnabled | true | Enable inactive claim decay |
claims.decayDaysInactive | 30 | Days before decay starts |
Combat Settings
| Option | Default | Description |
|---|---|---|
combat.tagDurationSeconds | 15 | Combat tag duration |
combat.allyDamage | false | Allow ally damage |
combat.factionDamage | false | Allow faction damage |
combat.taggedLogoutPenalty | true | Penalize combat logout |
combat.logoutPowerLoss | 1.0 | Power lost on combat logout |
Spawn Protection
| Option | Default | Description |
|---|---|---|
combat.spawnProtection.enabled | true | Enable spawn protection |
combat.spawnProtection.durationSeconds | 5 | Protection duration |
combat.spawnProtection.breakOnAttack | true | Remove on attack |
combat.spawnProtection.breakOnMove | true | Remove on movement |
Diplomatic Relations
| Option | Default | Description |
|---|---|---|
relations.maxAllies | 10 | Max ally factions (-1 = unlimited) |
relations.maxEnemies | -1 | Max 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:
| Option | Default | Description |
|---|---|---|
teleport.warmupSeconds | 5 | Warmup before teleport |
teleport.cooldownSeconds | 300 | Cooldown between uses |
teleport.cancelOnMove | true | Cancel on movement |
teleport.cancelOnDamage | true | Cancel on damage |
For the /f stuck command:
| Option | Default | Description |
|---|---|---|
stuck.warmupSeconds | 30 | Longer warmup (escape tool) |
stuck.cooldownSeconds | 300 | 5-minute cooldown |
Automatic Features
Auto-Save
| Option | Default | Description |
|---|---|---|
autoSave.enabled | true | Enable auto-save |
autoSave.intervalMinutes | 5 | Save interval |
Update Checking
| Option | Default | Description |
|---|---|---|
updates.enabled | true | Check for updates |
updates.releaseChannel | "stable" | "stable" or "prerelease" |
Permission Behavior
When HyperPerms is not installed:
| Option | Default | Description |
|---|---|---|
permissions.adminRequiresOp | true | Admins 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:
- If
worldWhitelistis not empty, only listed worlds allow claims - If empty,
worldBlacklistblocks specific worlds - If both empty, all worlds allow claims
Message Customization
| Option | Default | Description |
|---|---|---|
messages.prefix | §b[HyperFactions]§r | Message prefix |
messages.primaryColor | #00FFFF | Primary accent color |
Next Steps
Now that you've configured HyperFactions:
- Set up permissions if using HyperPerms
- Create zones for spawn and arenas
- Test your config by creating a faction
- See the Configuration Reference for all 47 options
Related Topics
- Configuration Reference - Complete option list
- Power System - Power mechanics
- Zones - SafeZone and WarZone setup
- Admin Commands - Reload and debug