Revert "Beautifying"

This reverts commit 3a3bb89635
This commit is contained in:
2023-04-24 22:02:52 +00:00
parent 6dbb92241a
commit 510f6afd23
40 changed files with 3329 additions and 3951 deletions

View File

@@ -1,26 +1,26 @@
const fetch = require("axios");
async function getuuid(ign) {
const mojangAPI = "https://api.mojang.com/users/profiles/minecraft/";
const mojangAPI = "https://api.mojang.com/users/profiles/minecraft/"
try {
const user = await fetch(mojangAPI + ign);
return user.data.id;
} catch (error) {
return null;
}
try {
const user = await fetch(mojangAPI + ign)
return user.data.id;
} catch (error) {
return null;
}
}
async function getplayer(uuid) {
const slothPixel = "https://api.slothpixel.me/api/players/";
const slothPixel = "https://api.slothpixel.me/api/players/";
try {
const player = await fetch(slothPixel + uuid);
return player;
} catch (error) {
return null;
}
try {
const player = await fetch(slothPixel + uuid)
return player
} catch (error) {
return null;
}
}
module.exports = getuuid;
module.exports = getplayer;
module.exports = getuuid
module.exports = getplayer