From 190a36d9ad50ec51c2a10ca86d281aaf4f301ee9 Mon Sep 17 00:00:00 2001 From: Braydon Date: Sun, 14 Apr 2024 15:06:24 -0700 Subject: [PATCH] Update sdk/js/player/query --- sdk%2Fjs%2Fplayer%2Fquery.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sdk%2Fjs%2Fplayer%2Fquery.md b/sdk%2Fjs%2Fplayer%2Fquery.md index 856a3ad..7a90501 100644 --- a/sdk%2Fjs%2Fplayer%2Fquery.md +++ b/sdk%2Fjs%2Fplayer%2Fquery.md @@ -2,5 +2,9 @@ ## Example ```ts -// TODO +import { CachedPlayer } from "restfulmc-lib"; +import { getPlayer } from "restfulmc-lib"; + +const player: CachedPlayer = await getPlayer("Username or UUID"); +console.log(`Hello ${player.username}, your UUID is ${player.uniqueId}!`); ``` \ No newline at end of file