From ac327b0026bbdee1855fc25a336cb2af2bf3ba7a Mon Sep 17 00:00:00 2001 From: dadodasyra <44753923+dadodasyra@users.noreply.github.com> Date: Tue, 8 Aug 2023 18:25:48 +0200 Subject: [PATCH] CommandEvent is not sending / --- src/Ad5001/PlayerSelectors/Main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ad5001/PlayerSelectors/Main.php b/src/Ad5001/PlayerSelectors/Main.php index e474add..27c4c5f 100644 --- a/src/Ad5001/PlayerSelectors/Main.php +++ b/src/Ad5001/PlayerSelectors/Main.php @@ -43,7 +43,7 @@ public function onEnable(): void{ * @priority HIGHEST */ public function onCommandEvent(CommandEvent $event): void{ - $m = substr($event->getCommand(), 1); + $m = $event->getCommand(); if($this->execSelectors($m, $event->getSender())) $event->cancel(); // cancel event to prevent duplicate executions }