import { getPlayer } from "mcutils-library"; /** * Checks if the player is valid. * * @param id the player's id * @returns true if valid, false otherwise */ export async function isValidPlayer(id: string): Promise { try { await getPlayer(id); return true; } catch { return false; } }