Skip to content

feat: add path-based configuration access methods#9

Merged
devspexx merged 1 commit intomasterfrom
feat/config-path-access
Apr 5, 2026
Merged

feat: add path-based configuration access methods#9
devspexx merged 1 commit intomasterfrom
feat/config-path-access

Conversation

@devspexx
Copy link
Copy Markdown
Owner

@devspexx devspexx commented Apr 5, 2026

Overview

Adds path-based configuration access to simplify loading configs without manually constructing File instances.

Changes

  • Added getByPath(String path)
  • Added getOrLoadByPath(String path)
  • Introduced internal path resolution with cross-platform normalization
  • Resolves paths relative to plugin data folder

Example

YamlConfig config = configManager.getOrLoadByPath("configs/settings.yml");

@devspexx devspexx merged commit 501eaef into master Apr 5, 2026
@devspexx devspexx deleted the feat/config-path-access branch April 5, 2026 09:34
@devspexx devspexx added the Enhancement An improvement to existing functionality without changing its core behavior. label Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement An improvement to existing functionality without changing its core behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant