Files
craftdock/src/adapters/playerFile/index.js
T
Lucas RayanandClaude Sonnet 5.5 640e52c0c9 Initial commit: CraftDock as of 2026-11-01
The previous GitHub history was lost with the account (the local .git was missing
its refs and most objects), so this repository starts from the existing code.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 22:44:39 -03:00

12 lines
486 B
JavaScript

import { createJavaPlayerFile } from './javaPlayerFile.js';
import { createBedrockPlayerFile } from './bedrockPlayerFile.js';
// Returns the read-only player-file adapter for the given edition. Both expose
// `readPlayer(id)`; the Bedrock adapter adds `findByUniqueId`/`listServerUuids`
// used by the identity bridge.
export function createPlayerFileAdapter(edition, config) {
return edition === 'bedrock'
? createBedrockPlayerFile(config)
: createJavaPlayerFile(config);
}