Sueta

MojangAPIWrapper

1.1

A Mojang java Wrapper API which is simplified and prepared to use

·Plugin

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 →