Hey! How can I run a command if I hold a stick or something else? For example if a hold the stick, the command /help will be run. Does something like $this->getServer()->runCommand()...exist? Thanks!
PHP: public function holdItem(PlayerItemHeldEvent $event) { if($event->getItem() instanceof Stick) { // Command Time! $this->getServer()->getCommandMap()->dispatch($event->getPlayer(), "help"); }}