Skip to content

PlasmaServices/FoxEconomy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FoxEconomy

About

FoxEconomy is a simple, easy-to-use economy plugin for Hytale.

Using the FoxAPI, you can integrate your plugins to use FoxEconomy.

Building From Source

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.

Using FoxAPI in Your Plugin

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.

API Example

You can view a full example project here.

Support

Support for FoxEconomy and FoxAPI is provided in the Plasma Services Discord Server

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages