Home›Java›Mods›InfValets - Multi-Currency Economy | Dynamic Exchange Rates | Public API | Vault Support
ModsJava

InfValets - Multi-Currency Economy | Dynamic Exchange Rates | Public API | Vault Support

Java mod listed for Minecraft 1.13–26.x. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
InfValets
A self-contained multi-currency economy for your server.

Create as many currencies as you like, let players pay and exchange them, and let other plugins use them through a clean public API. No Vault required - but if you have it, InfValets plugs right in.

Supports Minecraft 1.13 - 26.x (Spigot, Paper and forks) | Java 8+ | No dependencies


Features


Dynamic exchange rates
Every exchange pair is configured separately and can be FIXED or DYNAMIC.

FIXED - one constant rate.

DYNAMIC - the rate moves between a minimum and a maximum you choose, depending on two things:
Both effects have their own sensitivity and can be switched off independently. The plugin also warns you in the console if two opposite pairs would let players earn money by exchanging back and forth.

Code (YAML):

Convert
:
  fee-percent
: 0
  pairs
:
    coin-gems
:
      mode
: FIXED
      rate
: 10               # 1 coin = 10 gems
    gems-coin
:
      mode
: DYNAMIC
      rate
: 0.09             # base rate
      min-rate
: 0.05
      max-rate
: 0.1
      fee-percent
: 1
      supply
:
        reference
: 1000000   # "normal" total amount of the target currency
        sensitivity
: 0.5
      demand
:
        window-minutes
: 60
        reference-ops
: 20     # "normal" number of exchanges per window
        sensitivity
: 0.5
 


Commands
If you only have one currency, the currency argument can be left out.


Permissions


PlaceholderAPI
Identifier: infvalets. Values are cached and refreshed in the background, so they never block the server thread.


Vault
Vault is not required. If it is installed, InfValets registers itself as an economy provider for one currency of your choice (set in the Vault section of the config), so shops, jobs and similar plugins work out of the box.
Limitations: bank accounts are not supported, and amounts must be whole numbers.


For developers
InfValets has its own public API (no Vault needed) with multi-currency support, atomic operations and cancellable events. It never throws exceptions at you and is safe to call from async tasks.

Code (Java):

InfValetsAPI api = InfValetsAPI. get ( ) ;   // null if InfValets isn't running
if (api == null ) return ;
 
long coins = api. getBalance (player, "coin" ) ;
 
TransactionResult result = api. withdraw (player, "coin", 100 ) ;
if (result. isSuccess ( ) ) {
    // give the item
}
 
ConversionResult exchange = api. convert (uuid, name, "coin", "gems", 50 ) ;
 

Events: ValetTransactionEvent (before a change, cancellable) and ValetBalanceChangedEvent (after a change).

Full documentation: API documentation on GitHub


Installation
  1. Drop InfValets.jar into your plugins folder and start the server.
  2. Edit plugins/InfValets/config.yml: define your currencies, exchange pairs and messages.
  3. Run /infvalets reload to apply changes.
SQLite is used by default. For PostgreSQL, set the connection string in the Database section (the PostgreSQL driver is downloaded automatically on 1.16.5 and newer; on older servers use SQLite). Changing the database connection requires a restart.


Good to know


Support
Found a bug or have an idea? Open an issue here: issue tracker - or leave a message in the discussion tab. A review is always appreciated!

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

InfValets - Multi-Currency Economy | Dynamic Exchange Rates | Public API | Vault Support is a free Minecraft Java mod. Compatible with Minecraft 1.13, 1.14, 1.15, 1.16 and newer. Downloaded 4 times (via Spigot). Download it and open it directly in the game.

Explore more