diff --git a/utils/functions.js b/utils/functions.js index d716a84..c7f73b2 100644 --- a/utils/functions.js +++ b/utils/functions.js @@ -11,4 +11,16 @@ async function getuuid(ign) { } } -module.exports = getuuid; \ No newline at end of file +async function getplayer(uuid) { + const slothPixel = "https://api.slothpixel.me/api/players/"; + + try { + const player = await fetch(slothPixel + uuid) + return player + } catch (error) { + return null; + } +} + +module.exports = getuuid +module.exports = getplayer \ No newline at end of file