Aller au contenu principal

CurrenciesAPI

CurrenciesAPI is a Java library for Bukkit/Spigot plugin developers that provides a unified interface to interact with multiple in-game currency systems. It allows plugins to work seamlessly across different economy plugins without writing separate integration code.

Why CurrenciesAPI?

Instead of writing separate integration code for each economy plugin, CurrenciesAPI provides a single, consistent interface:

// Works with ANY supported currency system
Currencies currency = Currencies.VAULT;
currency.deposit(player, new BigDecimal("100.50"));
currency.withdraw(player, new BigDecimal("50.00"));
BigDecimal balance = currency.getBalance(player);

Supported Currencies

CurrenciesAPI integrates with 15+ economy systems:

CurrencyTypeDescription
VaultEconomyPrimary economy wrapper
PlayerPointsPointsPoints-based economy
EcoBitsEconomyEcoBits currency system
CoinsEngineEconomyMulti-currency support
zEssentialsEconomyzEssentials integration
VotingPluginPointsVote points system
RedisEconomyEconomyRedis-based economy
RoyaleEconomyEconomyRoyaleEconomy support
ElementalTokensTokensToken currency
ElementalGemsGemsGem currency
BeastTokensTokensBeast tokens system
zMenu ItemsItemsItem-based currency via zMenu
ItemsItemsNative item currency
LevelsExperiencePlayer level currency
ExperienceExperiencePlayer XP currency

Features

  • Unified API - One interface for all currency systems
  • Easy Integration - Simple deposit, withdraw, and balance methods
  • Multi-Currency - Support for systems with multiple currency types
  • Item Currencies - Native support for item-based economies
  • Experience Support - Use player levels or XP as currency
  • Lightweight - No runtime dependencies, just include in your plugin

Quick Start

1. Add Dependency

<dependency>
<groupId>fr.traqueur.currencies</groupId>
<artifactId>currenciesapi</artifactId>
<version>1.0.11</version>
</dependency>

2. Use the API

import fr.traqueur.currencies.Currencies;

// Deposit money
Currencies.VAULT.deposit(player, new BigDecimal("100"));

// Withdraw money
Currencies.VAULT.withdraw(player, new BigDecimal("50"));

// Check balance
BigDecimal balance = Currencies.VAULT.getBalance(player);

Next Steps

Copyright © 2026 GroupeZ|Build #loading...|-