Closed DenielWorld closed 5 years ago
You mean like this? permission: simple.cape.diamond command: /cape diamond
Yes, also I am having an issue. The cape format must be exactly 8192 bytes, how would I convert my cape pngs to that?
for set cape to player you must have valid cape
$capeData = $player->getSkin()->getCapeData();
$bytes = strlen($capeData);
var_dump($bytes); //output 8192
How do I make my own custom cape that would be valid, and could you give me some examples of valid capes?
Well that doesnt give me much explanation
convert png to skindata and get bytes with strlen
Register custom permission for each uploaded cape. Thanks.