FoxEconomy is a simple, easy-to-use economy plugin for Hytale.
Using the FoxAPI, you can integrate your plugins to use FoxEconomy.
To build from source, you will need to obtain a HytaleServer.jar file, which requires you to own Hytale. View Hytale's documentation on downloading a jar here
Once you have a HytaleServer.jar file, create a directory called libs/ in the project root directory, and place the HytaleServer.jar file in the folder.
You can then build it using Maven from your IDE of choice.
In IntelliJ Idea, click the Maven logo on the right hand side, click FoxEconomy, Lifecycle, and then dobule click install.
This will create the FoxEconomy jar in the target/ folder.
To use FoxAPI in your plugin, add FoxEconomy as a dependency in your pom.xml:
<dependencies>
<dependency>
<groupId>xyz.herberto.foxEconomy</groupId>
<artifactId>FoxEconomy</artifactId>
<version>1.0.0</version>
<systemPath>${pom.basedir}/libs/FoxEconomy.jar</systemPath>
<scope>system</scope>
</dependency>
</dependencies>You will need to add the FoxEconomy JAR file to your project's libs/ folder, similar to the Building From Source section.
The API can be used as follows:
import xyz.herberto.foxEconomy.api.FoxAPI;
FoxAPI api = FoxAPI.getInstance();
double balance = api.getBalance(playerUUID);
api.addMoney(playerUUID, 100.0);All API methods are detailed in the API-README.MD file.
You can view a full example project here.
Support for FoxEconomy and FoxAPI is provided in the Plasma Services Discord Server