padreon / SimpleCape

Cape plugin for pmmp
GNU General Public License v3.0
12 stars 3 forks source link

Feature Request #1

Closed DenielWorld closed 5 years ago

DenielWorld commented 5 years ago

Register custom permission for each uploaded cape. Thanks.

padreon commented 5 years ago

You mean like this? permission: simple.cape.diamond command: /cape diamond

DenielWorld commented 5 years ago

Yes, also I am having an issue. The cape format must be exactly 8192 bytes, how would I convert my cape pngs to that?

padreon commented 5 years ago

for set cape to player you must have valid cape

$capeData = $player->getSkin()->getCapeData();
$bytes = strlen($capeData);
var_dump($bytes); //output 8192
DenielWorld commented 5 years ago

How do I make my own custom cape that would be valid, and could you give me some examples of valid capes?

padreon commented 5 years ago

https://github.com/padreon/SimpleCape/blob/master/resources/cape.png

DenielWorld commented 5 years ago

Well that doesnt give me much explanation

padreon commented 5 years ago

convert png to skindata and get bytes with strlen

padreon commented 5 years ago

update permission