here is a new NickAPI update with a lot of bugfixes and a new feature.
CHANGELOG + Added a new method called #setRespawnPacket (it may be buggy with chunks)
* Fixed a skinbug that caused when a player unnicks
* Changed to call async from Thread to ExecutorService
*
Plugin is 100% compatible with reloads now * Changed the structure of the whole NickAPI -> removed global fields and made it local (If you have any problems with CPU or RAM, please report it) It is just a test. I want to see whether it makes big or small differences.
THERE WAS AN API-CHANGE: IF YOU WANT TO UNNICK THE PLAYER, USE #unnick OR/AND #resetGameProfile! PLUGIN DOESN'T HAVE ANY DEPENDENCIES
NICKAPI IS NOT RESPONSIBLE TO AFFECT THE CHAT OR SOMETHING ELSE. USE #setDisplayName TO CHANGE THE NAME OF PLAYER IN CHATS! IF YOU RELOAD YOUR SERVER, NICKAPI UNNICKS YOU BUT AS I SAID IT DOESN'T RESTORE YOUR REAL NAME IN CHAT! LOOK AT EXAMPLE CODE!
If you find any bugs, feel free to pm me on spigot (conversation).