Economy System¶
SigmaTools provides comprehensive economy integration with support for multiple economy plugins.
Supported Economy Plugins¶
Vault¶
Works with any Vault-compatible economy plugin: - EssentialsX - CMI - iConomy - BOSEconomy - And more
CoinsEngine¶
Alternative economy system: - Multi-currency support - Advanced features - Modern API
Configuration¶
Enable Economy¶
Set Tool Costs¶
Set Tool Rewards¶
economy:
rewards:
pickaxe: 1.0 # Reward per block
axe: 0.5 # Reward per log
bucket: 0.1 # Reward per operation
hoe: 0.3 # Reward per crop
How It Works¶
Cost Deduction¶
- Player uses tool
- Plugin checks if player can afford cost
- If yes, deducts cost before operation
- If no, blocks operation and shows message
Reward Distribution¶
- Player successfully uses tool
- Plugin calculates reward based on operations
- Adds reward to player balance
- Shows cumulative reward in action bar
Action Bar Display¶
The action bar shows: - Costs: 💰 -$10.00 (red) - Rewards: 💰 +$5.00 (green) - Combined: 💰 -$10.00 | 💰 +$5.00
Display duration: 5 seconds, then auto-resets.
Currency Detection¶
Vault Currency¶
- Symbol: 💰
- Format:
$1.00(with decimals) - Example:
💰 -$10.00
CoinsEngine Currency¶
- Symbol: 🪙
- Format:
1(no decimals) - Example:
🪙 -10
Bypass Permissions¶
Admins can bypass economy:
Effect: - No costs deducted - No rewards given - Tools are free to use
Economy Messages¶
Customize economy messages in messages.yml:
economy:
insufficient-funds: "&c💰 You need %amount% %currency% to use this tool!"
cost-deducted: "&e💰 Cost: %amount% %currency%"
reward-earned: "&a💰 Reward: %amount% %currency%"
API Integration¶
Use the API to interact with economy:
SigmaToolsAPI api = Bukkit.getServicesManager().load(SigmaToolsAPI.class);
// Get balance
EconomyResult balance = api.getBalance(player);
// Deduct currency
EconomyResult deduct = api.deduct(player, 10.0);
// Give reward
EconomyResult reward = api.reward(player, 5.0);
Best Practices¶
Balanced Economy¶
Premium Tools¶
Free Tools¶
Troubleshooting¶
Economy Not Working¶
- Verify economy plugin is installed
- Check
economy.enabled: true - Verify currency setting matches plugin
- Test economy:
/balanceor/coins
Costs Not Deducted¶
- Check player has sufficient balance
- Verify
economy.costsis set - Check bypass permission not granted
- Enable debug logging
Rewards Not Given¶
- Check
economy.rewardsis set - Verify economy plugin is working
- Check bypass permission not granted
- Enable debug logging
Next Steps¶
- Configuration Guide - Detailed economy configuration
- API Documentation - Economy API methods
- Troubleshooting - Solve economy issues