GemAPI (For ElementalGems) icon

GemAPI (For ElementalGems) -----

The Official public API for the premium plugin "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
Resource Information
Author:
----------
Total Downloads: 287
First Release: Nov 1, 2021
Last Update: Nov 29, 2021
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings