NightMarket v1.13 - The Developer API Update
This update introduces a powerful new feature for server administrators and developers, significantly expanding the plugin's flexibility and integration capabilities.
✨ New Features
- Developer API for Custom Economies
- The most significant addition in this version is the introduction of a public Developer API. This API allows other plugins to register their own custom economy providers directly with NightMarket.
- What this means for you: You are no longer limited to the built-in economy providers (Vault, PlayerPoints, TokenManager, CoinsEngine). If your server uses a unique currency system from another plugin (like gems, souls, event tokens, etc.), a developer can now easily create a small bridge plugin to make it work with NightMarket.
- How it works for developers:
- Developers can now access the APIManager class.
- By calling APIManager.registerEconomyProvider("UNIQUE_NAME", new YourEconomyProvider()), a new economy type can be added.
- The implementation requires creating a class that implements the EconomyProvider interface, similar to the existing internal providers.
- How it works for server owners:
- Once a custom provider is installed, simply set the economy.provider in config.yml to the "UNIQUE_NAME" defined by the developer. NightMarket will automatically detect and use it.
️ Internal Improvements
- The EconomyManager has been refactored to seamlessly detect and load both built-in and custom-registered economy providers.
- Added robust checks to prevent conflicts between custom providers and built-in provider names.
This update is focused on making NightMarket more extensible and compatible with any server's unique economy setup.