-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Scope
- Add server-level configuration option to hide faction tags from the in-game world map
- When disabled, claimed chunks should still show faction colors but NOT render the faction tag text
- Should be configurable via
config.jsonunder the worldMap section - Should NOT affect the GUI territory map (only the in-game minimap/world map)
- Default behavior should remain showing tags (backwards compatible)
Implementation Details
-
Suggested config structure:
{ "worldMap": { "markersEnabled": true, "showFactionTags": true } } -
Files to modify:
config/HyperFactionsConfig.java- AddshowFactionTagsboolean fieldworldmap/ClaimImageBuilder.java- Check config before rendering tag text (around line 486)src/main/resources/config.json- Add default value
-
Implementation in ClaimImageBuilder.java:
// Around line 486, wrap tag rendering in config check if (showClaimsOnMap && factionInfo != null && HyperFactionsConfig.get().isShowFactionTags()) { String tag = factionInfo.tag(); // ... existing tag rendering code }
Risks and Alternatives
- Risk: None significant - purely additive config option
- Challenge: Ensuring the config is checked at the right point in the rendering pipeline
- Alternative: Could make this a per-player setting, but server-level is simpler and matches the request
References and Media
- Current implementation:
worldmap/ClaimImageBuilder.java:486-493 - Config pattern reference: Existing
markersEnabledboolean in same section
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request