Description:
A simple plugin allows you to directly get the player head of a player on the server.
The Skull texture is the player's current skin(refreshes every 10 seconds)
The player head Itemstack texture won't update with the skin change of the player, but it won't cause lag
Can be used in menu GUI plugins or beheading plugins
Features:
Offline Player support
Support ANY custom skin plugins(skinsrestorer changeskin etc)
The plugin will save and update all player skins texture into config every 10 seconds
Bungee cord does not support getting custom skins(will get premium skin instead(300 skulls per 10 minutes max due to the Mojang rate limit))
MySQL support:
Edit the settings in mysql.yml and restart the server
or use plugman to reload
the old data in config.yml will be auto imported
Usage:
https://jitpack.io/#mcdoeswhat/skullapi-r/1.1.9
Code (Text):
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.mcdoeswhat</groupId>
<artifactId>skullapi-r</artifactId>
<version>1.1.10</version>
<scope>provided</scope>
</dependency>
Code (Text):
SkullAPI.getSkull(playerName) - get the player head
will return null if fail,you can use a steve head to replace
Skull texture priority:
1-custom skin
2-premium skin
3-null(won't save)
settings.yml:
Code (Text):
save-delay: 10
#set to 0 to disable mojang skin fetch
mojang-limit: 300
#enable skin saves
enable-save: true
Test Command:
/skullapi get playername - skullapi.admin —— get the specific player skull on the server
Plugins using this resource:
MyWarp