From 6e5857829bda396e997e383ad4906c53823228d8 Mon Sep 17 00:00:00 2001 From: Vecnavium Date: Wed, 2 Feb 2022 01:39:24 -0500 Subject: [PATCH] Fixed cancelling event bug --- src/jojoe77777/SlapperCooldown/SlapperCooldown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jojoe77777/SlapperCooldown/SlapperCooldown.php b/src/jojoe77777/SlapperCooldown/SlapperCooldown.php index 93f8b1d..7e4dc75 100755 --- a/src/jojoe77777/SlapperCooldown/SlapperCooldown.php +++ b/src/jojoe77777/SlapperCooldown/SlapperCooldown.php @@ -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);