Back to mods
currencies project artwork

CurseForge · Hytale mod

currencies

Create many currencies as you want for your Hytale server.

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

Quick answer

Which currencies release should I use?

Updated 5 months ago
Latest stable file currencies-1.0.1.jar
Game version Not listed
Mod system Built-in Hytale mod system

currencies-1.0.1.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 currencies 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 currencies-1.0.1.jar need?

currencies-1.0.1.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 currencies without breaking your instance.

Built for currencies-1.0.1.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use currencies-1.0.1.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 currencies-1.0.1.jar. It opens that exact file at the source.

About this project

What does currencies add?

Create various types of currencies and set up a commerce system between the players on your Hytale server.

The plugin uses Hibernate to handle the connection to MySQL/H2.

API Methods

The plugin includes "API" methods for integration with other plugins.

  • CurrencyUser: Contains all methods for updating the user's balance.
  • Currency: Contains all the methods for retrieving information about a created currency.
final PlayerRef playerRef = ...;
final String currencyId = ...;

final CurrenciesPlugin currenciesPlugin = CurrenciesPlugin.getInstance();

final CurrencyUser user = currenciesPlugin.getUserCache().find(playerRef.getUuid());
final Currency currency = currenciesPlugin.getCurrencyCache().find(currencyId);

Example config

The plugin generates a config.json file during initialization that contains the details for creating currencies and connecting to the database.

Currencies field:

  • Id: Id of currency to general use in plugin
  • Name: Name displayed in plugin messages.
  • Color: Color displayed in plugin messages.
  • DefaultAmount: Initial balance amount that the player has of this currency.
  • IsPayEnable: Determines whether players will be able to use the pay command.

Repository field:

  • Type: Type of connection. (h2 or mysql)
  • Address: Address to MySQL connection.
  • Username: Username to MySQL connection.
  • Password: Password to MySQL connection.
  • Database: Database of MySQL connection.
  • File: File path and name to H2 connection.
{
  "Currencies": [
    {
      "Id": "coins",
      "Name": "Coins",
      "Color": "#09ff00",
      "DefaultAmount": 100.0,
      "IsPayEnable": true
    },
    {
      "Id": "gold",
      "Name": "Gold",
      "Color": "#FFD700",
      "DefaultAmount": 0.0,
      "IsPayEnable": false
    }
  ],
  "Repository": {
    "Type": "h2",
    "Address": "localhost:3306",
    "Username": "root",
    "Password": "",
    "Database": "test",
    "File": "database/data"
  }
}

Commands and permissions

  • /{currency-id} [player] - Shows your or a player balance.
  • /{currency-id} pay {player} {amount} - Send balance for a player.
  • /{currency-id} top - Shows the player ranking for this currency.
  • /{currency-id} add {player} {amount} - Add balance for a player. (currencies.commands.add)
  • /{currency-id} remove {player} {amount} - Remove balance of a player. (currencies.commands.remove)
  • /{currency-id} set {player} {amount} - Set balance for a player. (currencies.commands.set)

Source code

Source code of plugin is available on my Github.

Project description from CurseForge.

Recent files

currencies releases and Hytale builds

2 of 2 releases match

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