πŸ”§API

Developer API documentation for InfiniteShops.


Overview

InfiniteShops provides a comprehensive API for developers to integrate with the plugin's features programmatically.


Maven / Gradle

⚠️ Note: Replace the repository URL with the actual InfiniteShops repository once published.

Maven

<repository>
    <id>infiniteshops</id>
    <url>https://repo.infiniteshops.net/releases</url>
</repository>

<dependency>
    <groupId>com.infiniteshops</groupId>
    <artifactId>InfiniteShops</artifactId>
    <version>1.0.0</version>
    <scope>provided</scope>
</dependency>

Gradle


Getting the API


Shop API

Opening Shops

Shop Information


Economy API

Balance Operations

Custom Currencies


Transaction API

Processing Transactions

Transaction History


Multiplier API


Shopper Rank API


Events

InfiniteShops fires events that can be listened to:

ShopBuyEvent

ShopSellEvent

Available Events

Event
Description
Cancellable

ShopBuyEvent

Fired before a purchase

Yes

ShopSellEvent

Fired before a sale

Yes

ShopOpenEvent

Fired when shop opens

Yes

BlackMarketBidEvent

Fired when bid placed

Yes

DailyShopResetEvent

Fired on reset

No

MultiplierActivateEvent

Fired on multiplier add

Yes

ShopperRankUpEvent

Fired on rank up

No


Utilities

Item Matching

Configuration


Example Plugin


Support

For API support and questions, contact us on Discord or open an issue on GitHub.


Tips

  1. Check for null - Always verify API instance exists before use

  2. Use events - Listen to events rather than polling for changes

  3. Cache sparingly - The API handles caching internally

  4. Handle async - Some operations may be asynchronous

  5. Test thoroughly - Verify integration on a test server first

Last updated