Usage Examples
-
You have a server network, and one of these servers is skywars server. Your skywars plugin wants to hook to vault, for saving money for kills and wins. Then, you want to make a cosmetics system for lobbies. So, then you can use Gems for cosmetics system.
-
hubmode: boolean (true or false). Used only for rain blocking. I hate raining and for some reason it always started to rain when i tested this plugin...
-
database: array. database settings
-
host: Your database's hostname
-
port: Your database port.
-
db: Database name
-
username: Database username
-
password: Database password.
-
Spoiler
Code (Text):
// First, you need an object for this.
private GemAPI api;
// In onEnable, put this to register your plugin to api.
api = new GemAPI("your-plugin-name-here"); // replace your-plugin-name-here for your plugin name
// then, use the api!
void removeGems (Player p, long amount) throws SQLException
void addGems (Player p, long amount) throws SQLException
long getGems (Player p) throws SQLException
void setGems (Player p, long amount) throws SQLException
private GemAPI api;
// In onEnable, put this to register your plugin to api.
api = new GemAPI("your-plugin-name-here"); // replace your-plugin-name-here for your plugin name
// then, use the api!
void removeGems (Player p, long amount) throws SQLException
void addGems (Player p, long amount) throws SQLException
long getGems (Player p) throws SQLException
void setGems (Player p, long amount) throws SQLException
Plans to future:
Reloading config.
Bugs:
None now, and future (i hope)!
PM Me if you find a bug! Huge thanks!
Terms of use:
- Don't decompile it.
- Don't share it!
- Provide a link to this page if you use it!
NOTE: This is my first plugin.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.9
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
The Gems (API) is a free Minecraft Java mod. Compatible with Minecraft 1.9. Downloaded 164 times (via Spigot). Download it and open it directly in the game.