Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CooldownComponent not very well documented #97

Open
dadodasyra opened this issue Aug 10, 2023 · 1 comment
Open

CooldownComponent not very well documented #97

dadodasyra opened this issue Aug 10, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@dadodasyra
Copy link

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

@TwistedAsylumMC
Copy link
Collaborator

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

@TwistedAsylumMC TwistedAsylumMC added the documentation Improvements or additions to documentation label Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants