shop api

Control the shop system.


Package

bg.pikz.shards.api.interfaces.ShopAPI

Accessing ShopAPI

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

ShardsAPI api = ShardsAPIProvider.getAPI();
ShopAPI shopManager = api.getShopManager();

Methods

openShop(Player player)

Opens the shop GUI for a player.

void openShop(Player player)

Parameters:

  • player - The player to show the shop to

Example:


reloadShop()

Reloads the shop configuration from files.

Example:


isShopLoaded()

Checks if the shop has been loaded successfully.

Returns: true if the shop is loaded and ready

Example:


Complete Example


Admin Reload Command Example


NPC Integration Example