Customies
Customies copied to clipboard
CooldownComponent not very well documented
We should add somewhere, in both wiki and comments that you need to send a Start cooldown packet so the cooldown is shown to the client. Without this it's never triggered:
$player->getNetworkSession()->sendDataPacket(PlayerStartItemCooldownPacket::create($name, $durationInTicks));
That's interesting, it wasn't like that back when I first implemented custom items. I will get this added to the wiki 👍🏻