promotional bannermobile promotional banner

Unlimited Economy API

A simple economy API with no money limit!

There are lots of economy plugins out there, but all of them have a max balance of $10 Trillion due to the double number type only being 64 bits. So I decided to make my own economy plugin with no max balance! I've done this by using the BigDecimal class instead of the Double class, since it can have any number of bits!.

 
Important Note:
This does not hook into vault, hence it is incompatible with any plugin that relies on Vault economies. The reason being that this one uses BigDecimal, which can represent any value while all other plugins use the primitive double, which can only go up to 10 Trillion.

This plugin is simply to help speed up development if you want to go above the 10 Trillion limit and don't want to write your own economy plugin.

Installation:

To use this API in your plugin, drop the UEconomy.jar file into your server's plugins directory. Then, add the jar file to your project as an external archive.

Usage:

There following methods are avaliable for use:
UEconomyAPI.addBalance(player, amount)
UEconomyAPI.subBalance(player, amount)
UEconomyAPI.setBalance(player, amount)
UEconomyAPI.getBalance(player)
UEconomyAPI.formatBigDecimal
UEconomyAPI.formatBigDecimalCharacters
for more information look at the javadoc comments for each method

Commands:

/bal
/baltop
/pay
/ueco set [player] [amount]
/ueco add
/ueco sub
for more info do /help UEconomy in-game



That's all the features so far. If there is enough interest for features such as overdrafts, Vault compatibility for amounts under 10T or releasing the source code I might add them.

The Unlimited Economy API Team

profile avatar
  • 1
    Projects
  • 2.7K
    Downloads