HomeJavaModsRedisEconomy⚡| UNLIMITED-CURRENCIES | CROSS-SERVER | OPEN-SOURCE
RedisEconomy⚡| UNLIMITED-CURRENCIES | CROSS-SERVER | OPEN-SOURCE
ModsJava

RedisEconomy⚡| UNLIMITED-CURRENCIES | CROSS-SERVER | OPEN-SOURCE

⬇ Download on Spigot
RedisEconomy (1).png
A "multi-server" Economy Plugin (Powered by Lettuce)

WIKI PAGE


[​IMG]
Any proxy (Bungee,Velocity...)
Any Spigot (Paper,Folia,Purpur...)
6.png
To enable migration on startup:

3.png
  1. You do not need to put the plugin in your proxy.
  2. Just drop it in your Spigot's plugins folder
  3. Then modify redis credentials in config.yml (leave blank user or password if you do not have it set)
  4. Choose a server-id different for every instance of Spigot in config.yml Now it is automatic
4.png
5.png
2.png
Vault
Spigot,Paper,Folia (1.17+)
Redis server (Guide: Click here)
7.png

Spoiler: config.yml with explanation
Code (YAML):

# This is automatically generated on server startup
# Change it only if you have disabled plugin messages on the proxy
serverId
: server1
# Language file
lang
: en-US
# Activate this before reporting an issue
debug
: false
# if true, migrates the bukkit offline uuids accounts to the new system
# During the migration, the plugin will be disabled. Restart all RedisEconomy instances after the migration.
migrationEnabled
: false
# Leave password or user empty if you don't have a password or user
# Don't use the default credentials in production!! Generate new credentials on RedisLabs -> https://github.com/Emibergo02/RedisEconomy/wiki/Install-redis
# Default credentials lead to a non-persistent redis server, only for testing!!
redis
:
  host
: localhost
  port
: 6379
  user
: ''
  password
: ''
  database
: 0
  timeout
: 2000
  clientName
: RedisEconomy
timeout=20s&clientName=RedisEconomy
# How many chars are needed for a command autocompletion
tab_complete_chars
: 0
# Default currency name (must be the same as the currency name in the currencies list)
defaultCurrencyName
: vault
# Currencies
currencies
:
- currencyName
: vault
  currencySingle
: euro
  currencyPlural
: euros
  decimalFormat
: ' #.##'
  languageTag
: 'en-US'
  startingBalance
: 0.0
  payTax
: 0.0
  bankEnabled
: true     #enables bank support
- currencyName
: dollar
  currencySingle
: $
  currencyPlural
: $
  decimalFormat
: ' #.##'
  languageTag
: 'en-US'
  startingBalance
: 0.0
  payTax
: 0.0
  bankEnabled
: false

 

Language messages formatting:
[​IMG]
[​IMG]
image.png
[​IMG]
https://github.com/Emibergo02/RedisEconomy#api-usage
Spoiler: API usage
Code (Java):
// Access Point
RedisEconomyAPI api = RedisEconomyAPI. getAPI ( ) ;
if (api == null ) {
    Bukkit. getLogger ( ). info ( "RedisEconomyAPI not found!" ) ;
}

//get a Currency
Currency currency = api. getCurrencyByName ( "vault" ) ; //Same as api.getDefaultCurrency()
api. getCurrencyBySymbol ( "€" ) ; //Gets the currency by symbol

//Currency is a Vault Economy https://github.com/MilkBowl/VaultAPI/blob/master/src/main/java/net/milkbowl/vault/economy/Economy.java,
//same methods and everything
currency. getBalance (offlinePlayer ) ;
currency. withdrawPlayer (offlinePlayer, 100 ) ;

//Modify a player balance (default currency)
api. getDefaultCurrency ( ). setPlayerBalance (player. getUniqueId ( ), 1000 ) ;

//Get all accounts from currency cache
api. getDefaultCurrency ( ). getAccounts ( ). forEach ( (uuid, account ) -> {
    Bukkit. getLogger ( ). info ( "Account: " +uuid + ", Balance: " +account ) ;
} ) ;

//Direct data from redis. (Not recommended)
api. getDefaultCurrency ( ). getOrderedAccounts ( ). thenAccept (accounts -> {
    accounts. forEach (account -> {
        Bukkit. getLogger ( ). info ( "UUID: " +account. getElement ( ) + ", Balance: " +account. getScore ( ) ) ;
    } ) ;
} ) ;
api. getDefaultCurrency ( ). getAccountRedis (uuid ). thenAccept (account -> {
    Bukkit. getLogger ( ). info ( "Balance: " + account ) ;
} ) ;
[​IMG]

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.

RedisEconomy⚡| UNLIMITED-CURRENCIES | CROSS-SERVER | OPEN-SOURCE is a free Minecraft Java mod. Compatible with Minecraft 1.17, 1.18, 1.19, 1.20 and newer. Downloaded 7,242 times (via Spigot). Download it and open it directly in the game.

Explore more