Skip to content

Add getPlayerDataDir method for player data retrieval#356

Merged
twisti-dev merged 4 commits into
version/26.1from
feat/player-data-dir-accessor
May 25, 2026
Merged

Add getPlayerDataDir method for player data retrieval#356
twisti-dev merged 4 commits into
version/26.1from
feat/player-data-dir-accessor

Conversation

@twisti-dev
Copy link
Copy Markdown
Contributor

This pull request introduces a new API method to retrieve the player data directory, implements it for both supported Minecraft versions, and increments the project version. These changes enhance the ability to access player data files directly from the API, improving extensibility for plugins or tools that need to interact with player data storage.

API Additions:

  • Added the abstract method getPlayerDataDir(): File to the SurfPaperNmsPlayerBridge interface, allowing retrieval of the directory where player data is stored. [1] [2]

Implementation Updates:

  • Implemented the getPlayerDataDir method in both V1_21_11SurfPaperNmsPlayerBridgeImpl and V26_1SurfPaperNmsPlayerBridgeImpl, returning the appropriate player data directory from the server. [1] [2]

Versioning:

  • Bumped the project version from 3.13.0 to 3.14.0 in gradle.properties to reflect the new API addition.

@twisti-dev twisti-dev self-assigned this May 25, 2026
Copilot AI review requested due to automatic review settings May 25, 2026 12:38
@twisti-dev twisti-dev merged commit b2a4e0c into version/26.1 May 25, 2026
3 of 7 checks passed
@twisti-dev twisti-dev deleted the feat/player-data-dir-accessor branch May 25, 2026 12:38
@twisti-dev twisti-dev review requested due to automatic review settings May 25, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant