hive-tools-wrapper
v5.4.0
Published
Type-safe wrapper for the Hive Bedrock API
Downloads
418
Readme
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);