Discord
v1.0.0Paper & Folia 1.21.11–26.3 (latest)

Developer API

Developer API for RogueTools.

Last reviewed September 2026

Public API

#

CurrencyProvider and SellPriceProvider can be registered through ServicesManager. No broader consumer API is claimed.

Register CurrencyProvider

#

Register your provider through Bukkit's ServicesManager after RogueTools has enabled. The implementation must follow the interface bundled with your installed version.

text
// Implement CurrencyProvider using the interface from the installed RogueTools API.
CurrencyProvider provider = new MyCurrencyProvider();

getServer().getServicesManager().register(
    CurrencyProvider.class,
    provider,
    this,
    ServicePriority.Normal
);

// Unregister your providers again when your plugin disables.
getServer().getServicesManager().unregisterAll(this);

Register SellPriceProvider

#

Register your provider through Bukkit's ServicesManager after RogueTools has enabled. The implementation must follow the interface bundled with your installed version.

text
// Implement SellPriceProvider using the interface from the installed RogueTools API.
SellPriceProvider provider = new MySellPriceProvider();

getServer().getServicesManager().register(
    SellPriceProvider.class,
    provider,
    this,
    ServicePriority.Normal
);

// Unregister your providers again when your plugin disables.
getServer().getServicesManager().unregisterAll(this);

Still stuck? Ask in Discord.