fixed things

This commit is contained in:
anonymousratwastaken 2025-12-20 07:58:05 +00:00
parent 661df0616b
commit 02d686ccae
2 changed files with 6 additions and 6 deletions

View file

@ -120,14 +120,14 @@ class MinecraftApiClient {
const data: GeyserResponse = await response.json();
// Validate the response data
if (!data.xuid || !data.gamertag) {
throw new Error('Invalid response from GeyserMC API - missing XUID or gamertag');
// Validate the response data - GeyserMC API only returns XUID, not gamertag
if (!data.xuid) {
throw new Error('Invalid response from GeyserMC API - missing XUID');
}
const result: PlayerIdentifierOutput = {
platform: 'bedrock',
username: data.gamertag,
username: gamertag, // Use the input gamertag since API doesn't return it
xuid: data.xuid
};

View file

@ -120,7 +120,7 @@ class MinecraftClient {
// Send resolved player data with UUID/XUID
const payload: any = {
player: player.username.trim(),
platform: player.platform === 'java' ? 'java username' : 'bedrock gamertag',
platform: player.platform, // Send 'java' and 'bedrock' as platform names
};
if (player.uuid) {
@ -149,7 +149,7 @@ class MinecraftClient {
// Send resolved player data with UUID/XUID
const payload: any = {
player: player.username.trim(),
platform: player.platform === 'java' ? 'java username' : 'bedrock gamertag',
platform: player.platform, // Send 'java' and 'bedrock' as platform names
};
if (player.uuid) {