shards api

The main entry point for all Shards API functionality.


Package

bg.pikz.shards.api.interfaces.ShardsAPI

Accessing ShardsAPI

import bg.pikz.shards.api.ShardsAPIProvider;
import bg.pikz.shards.api.interfaces.ShardsAPI;

ShardsAPI api = ShardsAPIProvider.getAPI();

Methods

getUserMap()

Gets a map of all users (by UUID) and their data.

Map<UUID, OfflineUserAPI> getUserMap()

Returns: Unmodifiable map of UUID to OfflineUserAPI

Example:


getLeaderboardManager()

Gets the leaderboard manager.

Returns: LeaderboardAPI instance


getAfkManager()

Gets the AFK manager.

Returns: AFKManagerAPI instance


getGenMultiplayer()

Gets the generation multiplier manager.

Returns: GenMultiplayerAPI instance


getKillMultiplayer()

Gets the kill multiplier manager.

Returns: KillMultiplayerAPI instance


getShopManager()

Gets the shop manager.

Returns: ShopAPI instance


getVersion()

Gets the current plugin version.

Returns: Version string (e.g., "2.3.9")


isFeatureEnabled(String feature)

Checks if a specific feature is enabled.

Parameters:

  • feature - The feature name: "leaderboard", "shop", or "afk"

Returns: true if the feature is enabled

Example:


Complete Example