HomeJavaModsGemAPI (For ElementalGems)
This is a simple library for you guys to use to hook into ElementalGems without having to purchase the plugin :)


Notes:
- This is NOT a plugin.
- Do NOT put this in your server's "plugins" folder
- You will be REQUIRED to update to v1.5.8 (or later) of ElementalGems for this to work

Installation:
- To use this API, simply import this file into your project's build path. Once that is done. You will need to go into your project's "plugin.yml" file and add
Code (Text):
softdepend: [ElementalGems]
Methods:
Code (Text):
//Get a player's gem balance
GemAPI.getGems(uuid);

//Set a player's gem balance
GemAPI.setGems(uuid, newBalance);

//Add gems to a player's balance
GemAPI.addGems(uuid, depositAmount);

//Remove gems from a player's balance
GemAPI.removeGems(uuid, withdrawAmount);

//Check if a player is in the ElementalGems database
GemAPI.playerExists(uuid);

//Retreive the Gem Item
GemAPI.getGemItem();

//Register a NEW player with the set default balance
GemAPI.registerNewPlayer(uuid);

//Get a list of all currently registered players
GemAPI.getRegisteredPlayers();

//Checks if the current item is a valid Gem
GemAPI.isGem(item);
 
If you have any questions or concerns about this API, feel free to contact me via private message or join my discord and @ me :p https://discord.gg/Qqf8BfN
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

GemAPI (For ElementalGems) is a free Minecraft Java mod. Downloaded 308 times (via Spigot). Download it and open it directly in the game.

Explore more