How would I execute a command (from console) on the end of a duel in minifixio's 1vs1? Where would I put the code aswell, like which file? Main?. I want the map to be reset so... PHP: public function onEndOfDuelEvent(){ //code for executing the command, please tell me what it is?
Try this PHP: public function onEndOfDuelEvent(){$this->getServer()->dispatchCommand(new ConsoleCommandSender(), "say this is the command to be ran");}
PHP: public function onEndOfDuelEvent(){ Server::dispatchCommand(new ConsoleCommandSender(), "stop");}