API Documentation
Developer documentation for integrating with SigmaSellAxe.
Getting the Plugin Instance
SigmaSellAxe plugin = (SigmaSellAxe) Bukkit.getPluginManager().getPlugin("SigmaSellAxe");
if (plugin == null || !plugin.isEnabled()) {
// Plugin not loaded
return;
}
Main Classes
SigmaSellAxe
Main plugin class.
Methods:
getConfigManager()- Get configuration managergetEconomyHook()- Get economy hookgetShopPluginManager()- Get shop plugin manager
ConfigManager
Manages plugin configuration.
Methods:
getShopConfig(String shopId)- Get shop-specific configurationgetItemBoost(String shopId, String material)- Get item boost multipliergetShopGlobalBoost(String shopId)- Get global boost for shopgetFallbackPrice(String material)- Get fallback price for material
EconomyHook
Handles economy operations.
Methods:
getShopPrice(Player player, Material material)- Get sell price for materialgetShopPluginManager()- Get shop plugin manager
ShopPluginManager
Manages shop plugin integrations.
Methods:
getActiveShopPlugin()- Get currently active shop plugingetPrice(Player player, Material material)- Get sell pricegetBuyPrice(Player player, Material material)- Get buy pricegetPriceForGUI(Material material)- Get price for GUI display
Examples
Getting Sell Price
SigmaSellAxe plugin = (SigmaSellAxe) Bukkit.getPluginManager().getPlugin("SigmaSellAxe");
EconomyHook economyHook = plugin.getEconomyHook();
double price = economyHook.getShopPrice(player, Material.DIAMOND_ORE);
Getting Item Boost
ConfigManager configManager = plugin.getConfigManager();
double boost = configManager.getItemBoost("farming", "PUMPKIN");
Checking Shop Plugin
ShopPluginManager shopManager = economyHook.getShopPluginManager();
ShopPluginInterface activePlugin = shopManager.getActiveShopPlugin();
if (activePlugin != null) {
String pluginName = activePlugin.getPluginName();
// ExcellentShop or EconomyShopGUI
}
Events
Currently, SigmaSellAxe does not fire custom events. This may be added in future versions.
Thread Safety
All API methods are thread-safe and can be called from any thread.
Version Compatibility
API methods may change between major versions. Check the changelog for breaking changes.
Support
For API questions or feature requests:
- Open an issue on GitHub
- Join our Discord Server