-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Scope
- Add a Server Faction mode where only admins can create special factions designed for roleplay/lore-driven servers
- Server factions operate without a traditional player leader — they are admin-managed entities (e.g., "The Coalition", "The Empire", "The Order")
- Admins can optionally assign a player as the faction leader, but leadership is admin-controlled (not transferable by players)
- Server factions should support whitelist-only membership — admins control who can join
- Server factions should support whitelist-only claims — territory that only whitelisted members can interact with
- Support a hybrid mode where both regular player-created factions and server factions coexist on the same server
- Optionally support a server-only mode where player faction creation is disabled entirely and only server factions exist
- Server factions should be visually distinguishable in the GUI (icon, badge, or color indicator)
- Server factions should be exempt from power decay, claim decay, and disbanding mechanics
Implementation Details
-
Faction type flag: Add
FactionTypeenum (PLAYER,SERVER) to the Faction data modelenum FactionType { PLAYER, SERVER }
-
Config options in
config.json:{ "serverFactions": { "enabled": true, "mode": "hybrid", "allowPlayerCreation": true, "serverFactionPrefix": "\u00265[\u0026d%s\u00265] ", "exemptFromDecay": true, "exemptFromPowerLoss": true } }mode:"hybrid"(both player + server factions),"server-only"(no player creation)allowPlayerCreation: redundant with mode but explicit toggle
-
Admin commands:
/f admin faction create <name> --server— create a server faction/f admin faction settype <faction> <player|server>— convert between types/f admin faction setleader <faction> <player|none>— assign/remove leader/f admin faction whitelist <faction> add/remove <player>— manage membership whitelist/f admin faction whitelist <faction> claims on/off— toggle whitelist-only claims
-
Admin GUI: Add server faction controls to the Admin Factions page
- "Create Server Faction" button in admin dashboard
- Server faction badge/indicator in faction list
- Whitelist management sub-page
-
Behavioral differences for server factions:
- Cannot be disbanded by players (admin only)
- Leader cannot transfer leadership (admin only)
- Exempt from power decay and claim decay
- Optional: exempt from power loss on death
- Optional: whitelist-only membership (players cannot
/f join) - Members cannot
/f leaveif whitelist-only (admin must remove them)
-
Permission nodes:
hyperfactions.admin.serverfaction— manage server factionshyperfactions.admin.serverfaction.create— create server factionshyperfactions.admin.serverfaction.whitelist— manage whitelist
Risks and Alternatives
- Risk: Adding a faction type introduces branching logic throughout the codebase (creation, disbanding, power, decay, leave/kick) — need careful audit of all faction operations
- Risk: Whitelist-only claims add complexity to the protection system — need to distinguish between "faction territory protection" and "whitelist-only protection"
- Challenge: Converting between player and server faction types mid-game could cause edge cases (what happens to the current leader, power balance, etc.)
- Alternative: Instead of a separate faction type, could implement "admin flags" on existing factions (immortal, no-decay, whitelist) — simpler but less cohesive
- Alternative: Could be a separate plugin (e.g., "HyperGuilds") but that loses the benefit of shared territory/relations/protection systems
- Challenge: The hybrid mode needs clear visual distinction so players understand which factions are server-managed vs player-created
References and Media
-
Community request from player "NOTHING" (February 12, 2026):
Only admins can create special server factions (without a predefined leader — only admins can assign the leader).
For example: The Coalition, The Empire, The Order
For example, The Empire could be set to whitelist-only.
Admins would also be able to create claims for these special factions and even set those claims as whitelist-only.
However, regular players would still be able to create their own normal factions as usual. -
Similar concept in MMO guild systems where developer-created factions serve as story/lore elements that players can join
-
Minecraft Towny's "nation" system provides a similar admin-managed tier above player guilds
-
Existing admin infrastructure:
AdminFactionsPage,AdminSubCommand, admin faction settings
- I have checked the existing issues for duplicates.
- I agree to follow this project's Code of Conduct.