46        if(count($args) === 0){
 
   50        $gameMode = GameMode::fromString($args[0]);
 
   51        if($gameMode === 
null){
 
   52            $sender->sendMessage(KnownTranslationFactory::pocketmine_command_gamemode_unknown($args[0]));
 
   57        $sender->getServer()->getConfigGroup()->setConfigString(ServerProperties::GAME_MODE, $gameMode->name);
 
   58        $sender->sendMessage(KnownTranslationFactory::commands_defaultgamemode_success($gameMode->getTranslatableName()));