Skip to content

Commit

Permalink
Fixed cancelling event bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Vecnavium committed Feb 2, 2022
1 parent e898cfb commit 6e58578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jojoe77777/SlapperCooldown/SlapperCooldown.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function onSlapperHit(SlapperHitEvent $ev){
return;
}
if(($this->lastHit[$name] + $this->cfg["delay"]) > (microtime(true))){
$ev->cancel();
$ev->cancel();
$ev->getDamager()->sendTip($this->cfg["message"]);
} else {
$this->lastHit[$name] = microtime(true);
Expand Down

0 comments on commit 6e58578

Please sign in to comment.