Hive-Api-Node
A node.js wrapper for the api of https://hivemc.com, written in TypeScript.
Install
$ npm install hive-api
Documentation
https://lergin.github.io/hive-api/
Usage
JavaScript
const hive = ; let player = "Lergin_"; player;
TypeScript
; ; player.info.then;
Examples
Some examples are using async / await and therefor need to be wrapped into a async function. See: async_function
Print the unique players of each game
; await GameTypes.update; // update the list of GameTypes GameTypes.list.forEach;
Get the global achievements of the winner of the latest survival games game
; GameTypes.SG.latestGames .thengames .thengame.info .then.catchconsole.error;
List the names of the skywars maps
; GameTypes.SKY.maps .thenmaps.mapmap.worldName .thenconsole.log
Get the amount of Beds destroyed by Malte662 in Bedwars
; ; console.logplayerBedInfo.bedsDestroyed;
There might be some more informations in the forums of HiveMC: https://forum.hivemc.com/threads/node-js-hive-api-library.279776/