Repository navigation
Module Configuration
github-actions[bot] edited this page Mar 1, 2026
·
1 revision
Modules load their configuration from JSON files in config/spp/behavior/.
config/spp/behavior/{module-id}.json
Each module's id() determines its config filename. For example, module "threat" reads from config/spp/behavior/threat.json.
- At server startup,
ModuleRegistry.loadAll()iterates all registered modules - For each module, it looks for
config/spp/behavior/{id}.json - If the file exists, it's parsed as a
JsonObjectand passed toloadConfig() - If the file doesn't exist,
loadConfig(null)is called (modules should handle null gracefully)
{
"enabled": true,
"customParam1": 10,
"customParam2": "value"
}Modules typically read enabled in loadConfig() and call setEnabled():
@Override
public void loadConfig(JsonObject config) {
if (config != null && config.has("enabled")) {
setEnabled(config.get("enabled").getAsBoolean());
}
}Use /spp module reload to reload all module configs from disk without restarting the server.
The global persona config is at config/spp/spp-persona.json and controls:
-
actionEngineEvalInterval— ticks between re-evaluations (default: 20) -
actionLogMaxEntries— max entries in action log (default: 200) -
maestroTickInterval— ticks between Maestro zone recalculations (default: 200) -
enableDevTests— show/hide/spp testcommands (default: false)
See SppPersonaConfig for the full list of fields.
SPP-AI Wiki
API Reference
- PersonaModule
- AbstractModule
- ActionPriority
- TickResult
- ModuleContext
- WorldSnapshot
- PersonaInventory
- ActionDecision
- BattleCapabilityProvider
Guides
Addon System