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 }