Customies icon indicating copy to clipboard operation
Customies copied to clipboard

CooldownComponent not very well documented

Open dadodasyra opened this issue 2 years ago • 1 comments

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));

dadodasyra avatar Aug 10 '23 13:08 dadodasyra

That's interesting, it wasn't like that back when I first implemented custom items. I will get this added to the wiki 👍🏻

TwistedAsylumMC avatar Aug 11 '23 21:08 TwistedAsylumMC