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