1.0.2 ā€¢ Published 3 years ago

mojang-minecraft-api v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

npm version npm license npm module downloads

mojang-minecraft-api

šŸŽ® Wrapper for the Mojang API

Installation

npm install mojang-minecraft-api

Functions

getServiceStatus() ā‡’ Object

Gets the current service status of various Mojang services

Kind: global function Returns: Object - - An Object that contains the status of various Mojang services

getUUID(username) ā‡’ Object

Gets the UUID of a player

Kind: global function Returns: Object - - This will return the UUID of the name that is provided

ParamTypeDescription
usernamestringThe username of the player

getNameHistory(uuid) ā‡’ Object

Gets the name history of a player

Kind: global function Returns: Object - - This will return all the usernames this user used in the past and the one they are using currently.

ParamTypeDescription
uuidstringThe UUID from the player

getNameHistoryByName(username) ā‡’ Object

Gets the name history of a player

Kind: global function Returns: Object - - This will return all the usernames this user used in the past and the one they are using currently.

ParamTypeDescription
usernamestringThe username of the player

getUUIDs(names) ā‡’ Object

Gets the UUIDs for multiple players

Kind: global function Returns: Object - - This will return the UUID's and names of the players that are provided

ParamTypeDescription
namesArray.<string>An array with player names

getProfile(uuid) ā‡’ Object

Gets the profile of a player

Kind: global function Returns: Object - - This will return the player's username and other additional information (e.g. skins)

ParamTypeDescription
uuidstringThe UUID from the player

getProfileByName(username) ā‡’ Object

Gets the profile of a player

Kind: global function Returns: Object - - This will return the player's username and other additional information (e.g. skins)

ParamTypeDescription
usernamestringThe username of the player

getSkinData(uuid) ā‡’ Object

Gets the skin data of a player

Kind: global function Returns: Object - - This will return the player's skin information (e.g. skin url)

ParamTypeDescription
uuidstringThe UUID from the player

getSkinDataByName(username) ā‡’ Object

Gets the skin data of a player

Kind: global function Returns: Object - - This will return the player's skin information (e.g. skin URL)

ParamTypeDescription
usernamestringThe username of the player

getSkinURL(uuid) ā‡’ string

Gets the skin URL of a player

Kind: global function Returns: string - - This will return the URL of the player skin

ParamTypeDescription
uuidstringThe UUID from the player

getSkinURLByName(username) ā‡’ string

Gets the skin URL of a player

Kind: global function Returns: string - - This will return the URL of the player skin

ParamTypeDescription
usernamestringThe username of the player

getPlayerHead(uuid) ā‡’ string

Gets the player head image of a player

Kind: global function Returns: string - - This will return a base64 string of the player head image (8x8)

ParamTypeDescription
uuidstringThe UUID from the player

getPlayerHeadByName(username) ā‡’ string

Gets the player head image of a player

Kind: global function Returns: string - - This will return a base64 string of the player head image (8x8)

ParamTypeDescription
usernamestringThe username of the player