Repository navigation
Developer API
DynamicShop3 exposes the DynaShopAPI class for integrations that need to interact with shop data.
The API includes methods for opening shop interfaces, querying shop names, reading the configured currency, and retrieving current buy/sell prices for items.
Examples of available concepts include:
- Open a shop for a player
- Open the currency selector
- Open the rotation editor
- Get a shop's current buy price
- Get a shop's current sell price
- Get the configured shop currency
- Enumerate configured shop names
The API provides current-price methods that calculate the price from the shop's current state rather than requiring another plugin to duplicate DynamicShop3's pricing logic.
Use the public API instead of reading internal YAML files when possible. Treat internal implementation classes as unstable and avoid depending on private fields.
For economy integrations, use the integration's public API and let DynamicShop3 handle its transaction flow rather than directly modifying shop state.
Current source builds use Maven and Java 25+ with the Paper 26.2 API. The repository also contains tests for transaction behavior, MultiCurrency handling, and shop-name formatting.
Before submitting changes, run the project's test suite and verify behavior on the target Paper/Purpur/Folia environment.
Repository: https://github.com/Cupjok/DynamicShop3