Warning : Please note that MojangAPIWrapper is not a plugin jar archive, It's an API library that can be used for your plugins !!
NOTE: The API uses Gson for JSON, that wouldn't be a problem because it's by default added in spigot.jar
What is MojangAPIWrapper :
It's a Mojang API wrapper which is simplified and prepared to use for spigot java development (Java 8)
How to use :
For both Eclipse and Intellij just add it as a java library and you're ready to go!
Note : if you are using it for bukkit/spigot api development it shouldn't be a problem otherwise Add Gson
import me.mrdev.mojang.API; //Import
public class Example {
public void testMethod() {
String status = API.getMojangStatus(); // Example method
//returns a string json response
String history = API.getNameHistroyByUsername("Mrdev1");/*Another example
returns a string json rsponse if the name is valid or not null
(Throws NullPointerException if the name is invalid or null)*/
//Note That All API methods are static and are returning a JSON string response expect getStringUUID() and both signature methods
NullPointerExceptions will be thrown if the uuid or player are null or invalid and Other expections if there's a connection issue(no internet for example)
}
}
Features :
- Getting the player's UUID by username(Json or Normal String)
- Getting Mojang servers Status
- Getting the player's name history by username or UUID
- Getting many UUIDs by usernames at one time
- Getting the player's skin URL and cape by username or UUID
- Getting raw and pure player's textures by username or UUID
- Getting the player's textures signature by username or UUID(Normal String not json)
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta