forked from bribes/FaavJS
-
Notifications
You must be signed in to change notification settings - Fork 0
6 lines (6 loc) · 1.39 KB
1
2
3
4
5
6
/* WARNING */
/* THIS IS A OUTDATED VERSION OF JSMC */
/* copyright (c) Faav 2021 */
/* JSMC v1.1 / MIT License / https://github.com/withdrew/jsmc */
console.warn("This site is running on a outdated version of JSMC!");
async function jsmc(a){await fetch("https://api.gapple.pw/blocked/"+a).then(a=>a.json()).then(e=>{player=new Object,player.status=e.status,"blocked"==player.status&&!1===/^[a-zA-Z0-9_]{3,16}$/.test(a)&&(player.status="invalid"),fetch("https://playerdb.co/api/player/minecraft/"+a).then(a=>a.json()).then(a=>{player.error=!1,player.username=a.data.player.username,player.uuid=a.data.player.id,player.id=a.data.player.raw_id,player.name_history=a.data.player.meta.name_history,player.icon=`https://crafatar.com/avatars/${player.id}?overlay`,player.avatar=`https://crafatar.com/renders/body/${player.id}?overlay`,player.head=`https://crafatar.com/renders/head/${player.id}?overlay`,player.skin=`https://crafatar.com/skins/${player.id}`,player.cosmetics=new Object,player.cosmetics.cape=new Object,player.cosmetics.cape.official=`https://crafatar.com/capes/${player.id}`,player.cosmetics.cape.optifine=`https://api.gapple.pw/cors/optifine/${player.username}`,player.cosmetics.cape.labymod=`https://api.gapple.pw/cors/labymod/cape/${player.id}`,player.cosmetics.bandana=new Object,player.cosmetics.bandana.labymod=`https://api.gapple.pw/cors/labymod/bandana/${player.id}`,code()}).catch(a=>player.error=!0);});}