ellieisjelly / Grand-Economy

A Minecraft server-side economy mod and api for hooking into various economy mods/plugins.

Home Page:https://www.curseforge.com/minecraft/mc-mods/grand-economy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grand Economy API

CurseForge Modrinth Maven Central

Adding Grand Economy to your dev environment

To use this with your mod, include the following in build.gradle:

repositories {
  maven {
	name 'Cloth Config'
	url 'https://maven.shedaniel.me/'
  }
  maven {
	name 'Mod Menu'
	url 'https://maven.terraformersmc.com/releases/'
  }
}
dependencies {
  modCompileOnly "dev.the-fireplace:Grand-Economy:${project.grandeconomy_version}:api"
  modRuntime "dev.the-fireplace:Grand-Economy:${project.grandeconomy_version}"
}

And in gradle.properties:

grandeconomy_version=<mod version>+<minecraft version>

Using the Entrypoint

To use currency from Grand Economy and/or register your own currency, you'll want to use the entrypoint.

  1. Create a class that implements GrandEconomyEntrypoint
  2. Add whatever logic you want to in your GrandEconomyEntrypoint's init function
  3. Add your entrypoint class to the grandeconomy entrypoint in your fabric.mod.json

Example entrypoint

"entrypoints": {
    "main": [
        ...
    ],
    "grandeconomy": [
        "your.package.YourImplementationClass"
    ]
},

About

A Minecraft server-side economy mod and api for hooking into various economy mods/plugins.

https://www.curseforge.com/minecraft/mc-mods/grand-economy

License:Mozilla Public License 2.0


Languages

Language:Java 99.9%Language:Shell 0.1%