- Native Minecraft Version:
- Legacy (< 1.13)
- Tested Minecraft Versions:
- Source Code:
SkinsAPI is an API for spigot developers who wants to manipulate player skins. It allows you to change a player skin easily with 2 lines.
Download SkinsAPI.jar(https://github.com/kappacite/SkinsAPI/blob/master/SkinsAPI.jar) and add it as a dependance to your project.
- Get & set a skin from an image.
- Get & set a skin from a mojang account.
First, you need to set the plugin & to enable SkinsAPI. In your main class, in the onEnable:
Don't forget the disable the API when your plugin is disable.Code (Java):SkinsAPI.getInstance().setPlugin(this);
To set a player skin,
And that's it!Code (Java):SkinsAPI.getInstance().getSkinsManager().setSkin(player, skin);
More details on https://github.com/kappacite/SkinsAPI/wiki.
If you are using Intellij IDEA, don't forget to set the dependency as " Compile " in Modules > Dependencies and to create an artifacts with dependencies.
SkinsAPI supports 1.8 to 1.15.2 with full NMS compatibility.
If you have some problem with it like NMS or other, you can open an issue.