Skip to content

Latest commit

 

History

History
54 lines (33 loc) · 1.18 KB

README.md

File metadata and controls

54 lines (33 loc) · 1.18 KB

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);