Skip to content

Paroxity/hive-tools-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hive Tools Wrapper

Type-safe wrapper for the Hive Bedrock API

Examples

Fetching Current Monthly Leaderboard

import { Game, getMonthlyLeaderboard } from "hive-tools-wrapper";

const leaderboard = await getMonthlyLeaderboard(Game.TreasureWars);

Fetching Previous Monthly Leaderboard

import { Game, getMonthlyLeaderboard } from "hive-tools-wrapper";

const leaderboard = await getMonthlyLeaderboard(Game.TreasureWars, 2022, 8);

Fetching All-Time Leaderboard

import { Game, getAllTimeLeaderboard } from "hive-tools-wrapper";

const leaderboard = await getAllTimeLeaderboard(Game.TreasureWars);

Fetching Current Monthly Player Stats

import { Game, getMonthlyStats } from "hive-tools-wrapper";

const stats = await getMonthlyStats("NeutronicMC", Game.TreasureWars);

Fetching Previous Monthly Player Stats

import { Game, getMonthlyStats } from "hive-tools-wrapper";

const stats = await getMonthlyStats("NeutronicMC", Game.TreasureWars, 2022, 8);

Fetching All-Time Player Stats

import { Game, getAllTimeStats } from "hive-tools-wrapper";

const stats = await getAllTimeStats("NeutronicMC", Game.TreasureWars);