48 if(count($args) === 0){
52 $name = array_shift($args);
53 if(!Player::isValidUserName($name)){
57 $sender->getServer()->addOp($name);
58 if(($player = $sender->getServer()->getPlayerExact($name)) !==
null){
59 $player->sendMessage(KnownTranslationFactory::commands_op_message()->prefix(TextFormat::GRAY));
61 Command::broadcastCommandMessage($sender, KnownTranslationFactory::commands_op_success($name));