π»API Documentation
Welcome to the official bShop API documentation. This guide will help you integrate bShop into your plugins and extend its functionality.
Getting Started
Installation
Add bShop to your project using JitPack:
Maven
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.bumpier</groupId>
<artifactId>bShop</artifactId>
<version>1.2.0</version>
</dependency>Gradle
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.bumpier:bShop:1.2.0'
}Plugin Dependencies
Add bShop as a dependency in your plugin.yml:
Dependencies
bShop requires the following dependencies:
Vault - For economy integration
PlaceholderAPI (optional) - For placeholder support
Basic Usage
Getting the API Instance
Accessing Core Components
Methods
Method
Return Type
Description
getInstance()
BShopAPI
Get the API instance
getPlugin()
BShop
Get the main plugin instance
getShopManager()
ShopManager
Get the shop manager
getShopGuiManager()
ShopGuiManager
Get the GUI manager
getTransactionService()
ShopTransactionService
Get the transaction service
getMultiplierService()
MultiplierService
Get the multiplier service
ShopManager
Manages all shops and their configurations.
Methods
Method
Return Type
Description
getShop(String shopId)
Shop
Get a shop by ID
getAllShops()
List<Shop>
Get all loaded shops
loadShops()
void
Reload all shops from configuration
Example
Last updated