deactivate bedrock uuid resolver
All checks were successful
delpoy / build-and-deploy (push) Successful in 51s
All checks were successful
delpoy / build-and-deploy (push) Successful in 51s
This commit is contained in:
@ -1,10 +1,4 @@
|
||||
import {
|
||||
getBedrockUuid,
|
||||
getJavaUuid,
|
||||
getNoAuthUuid,
|
||||
MojangError,
|
||||
UserNotFoundError
|
||||
} from '$lib/server/minecraft';
|
||||
import { ApiError, getJavaUuid, getNoAuthUuid, UserNotFoundError } from '$lib/server/minecraft';
|
||||
import { error, type RequestHandler } from '@sveltejs/kit';
|
||||
import { User } from '$lib/server/database';
|
||||
|
||||
@ -36,7 +30,8 @@ export const POST = (async ({ request }) => {
|
||||
uuid = await getJavaUuid(username);
|
||||
break;
|
||||
case 'bedrock':
|
||||
uuid = await getBedrockUuid(username);
|
||||
uuid = null;
|
||||
// uuid = await getBedrockUuid(username);
|
||||
break;
|
||||
case 'noauth':
|
||||
uuid = getNoAuthUuid(username);
|
||||
@ -47,7 +42,7 @@ export const POST = (async ({ request }) => {
|
||||
} catch (e) {
|
||||
if (e instanceof UserNotFoundError) {
|
||||
throw error(400, `Ein Spieler mit dem Namen '${username}' konnte nicht gefunden werden`);
|
||||
} else if (e instanceof MojangError) {
|
||||
} else if (e instanceof ApiError) {
|
||||
console.error((e as Error).message);
|
||||
uuid = null;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user