You can use PHP: public function onCommandProcess(PlayerCommandPreprocessEvent $event){} check if it's the command you want to change and cancel the event and perform the function you want
Like this ? PHP: public function onCommandProcess(PlayerCommandPreprocessEvent $event){ if($event->getCommand()->getName() == "gamemode"){ $event->setCancelled(true); } }