Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

[PR] Prevent event from firing multiple times #23

Closed
wants to merge 2 commits into from
Closed

[PR] Prevent event from firing multiple times #23

wants to merge 2 commits into from

Conversation

cosmicnebula200
Copy link
Contributor

No description provided.

$entity = $event->getEntity();
$damager = $event->getDamager();
$levelName = $event->getEntity()->getLevel()->getName();
if(!$event->isCancelled()){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the formatting.

Should be:
if (!$event->isCancelled()) {

@AGTHARN AGTHARN added the Enhancement New feature or request label Jan 31, 2021
@AGTHARN AGTHARN changed the title Update EventListener.php [PR] Prevent event from firing multiple times Jan 31, 2021
AGTHARN added a commit that referenced this pull request Mar 1, 2021
This version should be stable enough to be used for production servers.

- Manually merged fix in #23
- Fixed coupons taken while on cooldown
- Removed unnecessary checks for coupons that causes some issues
- Some other improvements
@AGTHARN
Copy link
Owner

AGTHARN commented Mar 1, 2021

Manually merged your fix into b1ff40f. Thanks for your contribution!

@AGTHARN AGTHARN closed this Mar 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants