ModsJava
RoseAPI free ⭐Player APIs (/api)
Java mod listed for Minecraft 1.8–1.18. Downloads from the MC Java Mods app on Android.
⬇ Download on Spigot
IF THIS IS UPLOADED BY SOMEONE OTHER THAN "SuperSoda" IT IS MALWARE.
RoseAPI is a plugin that allows you to create your own API system like many popular servers do. The plugin depends on PlaceholderAPI as this is what we use to deliver values on the webserver.
I strongly recommend using an nginx reverse proxy until spark, the webserver this project depends on has not been updated in a while and doesn't have built in TLS/SSL
To use the plugin, you can drag and drop it into the plugins folder. Configure the webserver port (or leave it as default) and then restart the server. You can access the api using this example code for Python.
Code (Text):
import requests
API_KEY = "5261253c-747b-4853-a6d4-bcde473b49b7"
PLAYER_UUID = "226d5055-3e41-44f4-a527-ecbce4a6bb28"
x = requests.get("http://server.ip:8080/" + PLAYER_UUID + "/player_first_join_date", headers={"token":API_KEY})
print(x.text)
API_KEY = "5261253c-747b-4853-a6d4-bcde473b49b7"
PLAYER_UUID = "226d5055-3e41-44f4-a527-ecbce4a6bb28"
x = requests.get("http://server.ip:8080/" + PLAYER_UUID + "/player_first_join_date", headers={"token":API_KEY})
print(x.text)
Please leave a positive review if the plugin helps since I'm relatively new to SQLite, MySQL and running async tasks! If you find an error or want to contact me about something, message me on discord at fizz#4096.
Spoiler: Configuration
Configuration
This section will provide information on how to configure the plugin!
This section will provide information on how to configure the plugin!
- Version
Please do not change the value, it's used to upgrade the database between releases and must remain as it is. - storage_type
This is where you will be able to chose between using mysql or sqlite. SQLite is completely local and the default setting, meaning that you will not have to do any additional setup - server_port
This is the port of the webserver that the plugin will be hosting. By default it is 8080, make sure the port is open! In future releases you will be able to disable the webserver - show_after
This is for the /api command and if true, will let the player view their API key by running /api any time. But if the value is false it will only show the API key once on doing /api - mysql
This section in the configuration is for configuring your mysql database details. This section is ignored if you are using SQLite. - placeholders
This section is where you can chose what placeholders players will have access to using. By default it has player_username and vault_eco_balance
Code (YAML):
version
: 1
storage_type : sqlite
server_port : 8080
show_after : false
mysql:
username : 'root'
password : 'password'
host : 'yourdomain.com:3306'
database : 'roseapi'
placeholders :
- "vault_eco_balance"
- "player_username"
storage_type : sqlite
server_port : 8080
show_after : false
mysql:
username : 'root'
password : 'password'
host : 'yourdomain.com:3306'
database : 'roseapi'
placeholders :
- "vault_eco_balance"
- "player_username"
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.8, 1.9, 1.10
- 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.
RoseAPI free ⭐Player APIs (/api) is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 95 times (via Spigot). Download it and open it directly in the game.