Back to mods
EcoAPI project artwork

CurseForge · Hytale mod

EcoAPI

EcoAPI is the first Hytale Economy API that will let plugins use economy in servers

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which EcoAPI release should I use?

Updated 6 months ago
Latest stable file EcoAPI-1.0-SNAPSHOT.jar
Game version Not listed
Mod system Built-in Hytale mod system

EcoAPI-1.0-SNAPSHOT.jar targets Hytale. Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer. No required dependencies listed for this file.

Where it goes

Where should EcoAPI be installed in Hytale?

Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer.

Separate client mod Not supported
World host / dedicated server Required
Mod system for this release Built-in Hytale mod system
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

Put Hytale mods on the world host or dedicated server. Singleplayer runs a local server too; Hytale does not use separate client mods.

What else does EcoAPI-1.0-SNAPSHOT.jar need?

EcoAPI-1.0-SNAPSHOT.jar. Change the file and its required mods may change too.

No required dependencies listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional project dependencies. Check the creator notes before changing an existing world.

Before you install it

Add EcoAPI without breaking your instance.

Built for EcoAPI-1.0-SNAPSHOT.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use EcoAPI-1.0-SNAPSHOT.jar. It targets Hytale; another release may target a different game build or dependency set.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Enable it on the world host

    Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside EcoAPI-1.0-SNAPSHOT.jar. It opens that exact file at the source.

About this project

What does EcoAPI add?

EcoAPI 🔗

EcoAPI is a standardized interface layer for Hytale economy systems.

It does not handle money storage or transactions itself. Instead, it provides a set of abstract methods and interfaces that allow:

  1. Economy Plugins (Providers) to implement their own banking logic (SQL, JSON, etc.).
  2. Gameplay Plugins (Consumers) to interact with the economy (shops, jobs, etc.) without depending on a specific economy plugin.

❓ Why EcoAPI?

🛠 For Developers

  • Decoupling: Write your plugin once. It will work with any economy plugin that implements EcoAPI.
  • Standardization: Use a unified set of methods (getBalance, addBalance, removeBalance, setBalance) regardless of the underlying system.
  • Flexibility: Switch the backing economy system without breaking dependent plugins.

🎮 For Users / Server Owners

  • Compatibility: Allows you to use a Shop plugin from Developer A and a Banking plugin from Developer B together seamlessly.
  • Freedom: You are not locked into a single specific economy plugin. You can swap implementations whenever you want.

📥 Installation Guide (For Users)

Note: EcoAPI does nothing on its own. You need three things for a working system:

  1. EcoAPI (This plugin).
  2. An Implementation Plugin (A plugin that actually stores the money and "implements" EcoAPI).
  3. Any Consumer Plugins (Shops, Kits, Jobs, etc.).

Steps:

  1. Download the latest release from the Releases page.
  2. Place the .jar file into your server's plugins folder.
  3. Ensure you also install a compatible Economy Provider plugin.

💻 Integration Guide (For Developers)

Since EcoAPI is not yet hosted on Maven Central, you must install it into your local Maven repository to use it as a dependency.

Step 1: Install Locally

  1. Download the latest release from the Releases page.
  2. Publish the artifact to your local cache with the following command (Maven)
mvn install:install-file -Dfile=Path/To/EcoAPI.jar -DgroupId=com.dunystudios.hytale.plugins -DartifactId=EcoAPI -Dversion=1.0-SNAPSHOT -Dpackaging=jar

Step 2: Add Dependency

Add EcoAPI to your project.

<dependencies>
    <dependency>
        <groupId>com.dunystudios.hytale.plugins</groupId>
        <artifactId>EcoAPI</artifactId>
        <version>1.0-SNAPSHOT</version>
        <scope>provided</scope>
    </dependency>
</dependencies>

Step 3: Usage Examples

  1. Using the Economy (Consumer) If you are making a Shop or Job plugin, use the API to modify balances:
// Get the economy plugin
IEcoAPI economy = IEcoAPI.Service.getInstance();

// Get the balance of a player
float balance = economy.getBalance(uuid);

// Add 10 of balance to a player
economy.addBalance(uuid, 10);

// Remove 10 of balance from a player
economy.removeBalance(uuid, 10);

// Set 10 of balance to a player
economy.setBalance(uuid, 10);
  1. Providing the Economy (Implementer) If you are making an Economy plugin, you must implement the interface and register it.

Main class:


public class MyEconomyPlugin extends JavaPlugin {
    private final Economy economy;

    public MyEconomyPlugin() {
        this.economy = new Economy();
    }

    @Override
    protected void setup() {
        IEcoAPI.Service.setInstance(economy);
    }

}

Economy class:

public class Economy implements IEcoAPI {

    @Override
    public float getBalance(UUID uuid) {
        // Your logic
        return 0;
    }

    @Override
    public void addBalance(UUID uuid, float v) {
        // Your logic
    }

    @Override
    public void removeBalance(UUID uuid, float v) {
        // Your logic
    }

    @Override
    public void setBalance(UUID uuid, float v) {
        // Your logic
    }
}

Project description from CurseForge.

Recent files

EcoAPI releases and Hytale builds

1 of 1 releases match

Looking for an older file? The official CurseForge project page is in Resources.